help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question About Nuking 'Ranger.el' Package's 'Deer' Portion's 'deer-f


From: Samuel Banya
Subject: Re: Question About Nuking 'Ranger.el' Package's 'Deer' Portion's 'deer-from-dired' Function
Date: Sun, 20 Feb 2022 19:40:43 -0500
User-agent: Cyrus-JMAP/3.5.0-alpha0-4778-g14fba9972e-fm-20220217.001-g14fba997

Hey Thibaut, 

Thanks so much!

This fixed it for me:
*** Force 'ranger.el' to stop allowing 'Deer' mode from 'dired'
#+begin_src emacs-lisp
(remove-hook 'dired-mode-hook 'ranger-set-dired-key)
#+end_src

On Sat, Feb 19, 2022, at 4:28 PM, Thibaut Verron wrote:
> For the use-case in question, you need to unbind the key in ranger's
> keymap, rather than the global keymap
> (define-key dired-mode-map (kbd "C-p") #'ignore)
> 
> But it's set in a hook, every time dired-mode is loaded, so not really 
> helpful.
> 
> Instead, you can delete the function from the hook:
> (remove-hook 'dired-mode-hook 'ranger-set-dired-key)
> 
> The cleanest way is to have
> (setq ranger-key nil)
> before ranger is loaded.
> 
> Best wishes,
> Thibaut
> 
> Le sam. 19 févr. 2022 à 17:59, Emanuel Berg via Users list for the GNU
> Emacs text editor <help-gnu-emacs@gnu.org> a écrit :
> >
> > Samuel Banya wrote:
> >
> > > Hmm... I don't know if that would help be cause I only want
> > > this for the Ranger specific function, and specifically only
> > > to avoid it in Dired mode itself.
> >
> > You look to disable the function itself or the keystroke that
> > invokes the function?
> >
> > --
> > underground experts united
> > https://dataswamp.org/~incal
> >
> >
> 
> 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]