From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Torben Knudsen Newsgroups: gmane.emacs.help Subject: Re: Remove local key binding in Dired Date: Fri, 03 Jul 2009 08:33:06 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: <87eisygtst.fsf@es.aau.dk> References: <87iqib1snz.fsf@es.aau.dk> <87ocs3va1l.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1246603256 8950 80.91.229.12 (3 Jul 2009 06:40:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 06:40:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 03 08:40:50 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MMcS2-0008M3-EI for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2009 08:40:50 +0200 Original-Received: from localhost ([127.0.0.1]:42007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMcS1-0004MF-U3 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2009 02:40:49 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Original-Lines: 35 Original-NNTP-Posting-Host: 172.16.14.2 Original-X-Trace: news.sunsite.dk DXC=XG; YAJ\El5TgcbniiOP=_RYSB=nbEKnk[=9bXC1_flcTdB93PRF>7XQ[Ff6Z_`9JfSA\6hR_; =AMT Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:170540 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65750 Archived-At: 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 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