all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thibaut Verron <thibaut.verron@gmail.com>
To: Emanuel Berg <moasenwood@zoho.eu>,
	help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Question About Nuking 'Ranger.el' Package's 'Deer' Portion's 'deer-from-dired' Function
Date: Sat, 19 Feb 2022 22:28:02 +0100	[thread overview]
Message-ID: <CAFsi02Tqd+B96RCrxxqtagfmUp1wy=VkWLN9P1u5ja+rHepUsg@mail.gmail.com> (raw)
In-Reply-To: <87a6emeqsm.fsf@zoho.eu>

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	other threads:[~2022-02-19 21:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-19  1:11 Question About Nuking 'Ranger.el' Package's 'Deer' Portion's 'deer-from-dired' Function Samuel Banya
2022-02-19  2:03 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 15:36   ` Samuel Banya
2022-02-19 16:04     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 16:52       ` Samuel Banya
2022-02-19 16:59         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 21:28           ` Thibaut Verron [this message]
2022-02-21  0:40             ` Samuel Banya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFsi02Tqd+B96RCrxxqtagfmUp1wy=VkWLN9P1u5ja+rHepUsg@mail.gmail.com' \
    --to=thibaut.verron@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.