From: Torben Knudsen <tk@es.aau.dk>
To: help-gnu-emacs@gnu.org
Subject: Re: Remove local key binding in Dired
Date: Fri, 03 Jul 2009 08:33:06 +0200 [thread overview]
Message-ID: <87eisygtst.fsf@es.aau.dk> (raw)
In-Reply-To: 87ocs3va1l.fsf@iki.fi
Thanks, this is exactly what I need. I have some small changes to
emacs key bindings. However I try to keep it at a minimum.
Teemu Likonen <tlikonen@iki.fi> writes:
> On 2009-07-02 08:54 (+0200), Torben Knudsen wrote:
>
>> However, in dired
>>
>> M-o runs the command dired-omit-mode
>>
>> I can remove this "manually" by
>>
>> local-unset-key M-o
>>
>> in a dired buffer
>>
>> but how can I do this in my .emacs?
>
> Configure a Dired mode hook which sets M-o keybinding to nil in the
> mode's local map:
>
> (add-hook 'dired-mode-hook 'my-dired-mode-hook)
>
> (defun my-dired-mode-hook ()
> (define-key dired-mode-map (kbd "M-o") nil))
--
Associate Prof. Ph.D Torben Knudsen Mobile : (+45) 2787 9826
Section of Automation and Control, Direct : 6 8694
Department of Electronic Systems, Email : tk@es.aau.dk
Aalborg University
Fredrik Bajersvej 7
DK-9220 Aalborg Ø
Denmark
next prev parent reply other threads:[~2009-07-03 6:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 6:54 Remove local key binding in Dired Torben Knudsen
2009-07-02 7:06 ` Teemu Likonen
2009-07-03 6:33 ` Torben Knudsen [this message]
2009-07-02 13:34 ` Xah Lee
2009-07-02 15:41 ` Marc Tfardy
2009-07-02 22:00 ` Xah Lee
2009-07-03 6:36 ` Torben Knudsen
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=87eisygtst.fsf@es.aau.dk \
--to=tk@es.aau.dk \
--cc=help-gnu-emacs@gnu.org \
/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.