[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remove local key binding in Dired
From: |
Torben Knudsen |
Subject: |
Re: Remove local key binding in Dired |
Date: |
Fri, 03 Jul 2009 08:33:06 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
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