From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Remove local key binding in Dired Date: Thu, 02 Jul 2009 10:06:14 +0300 Organization: A noiseless patient Spider Message-ID: <87ocs3va1l.fsf@iki.fi> References: <87iqib1snz.fsf@es.aau.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246572244 14066 80.91.229.12 (2 Jul 2009 22:04:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2009 22:04:04 +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 00:03:56 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 1MMUNn-00043x-CL for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2009 00:03:55 +0200 Original-Received: from localhost ([127.0.0.1]:34743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMUNm-0003XE-Qt for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jul 2009 18:03:54 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed2.telusplanet.net!newsfeed.telus.net!feeder.erje.net!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: news.eternal-september.org U2FsdGVkX18384ocY8ov9biLCa3p904rjgYzMQswc37jc3iMqhPf915Rmzyk3jrCDGr3+2BxDrh5DXIVM7TeroXn6GmxL+WF6sotZjxLzEB5rFKkDSCR2Htce7RLyfq6E6EH3RMG9hk1uEfgxYgmiQ== Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Thu, 2 Jul 2009 07:09:34 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19f33hl0BbqdXPS71khzFzBrrXQpFisVTnJ03D5W8trcw== Cancel-Lock: sha1:iK/hGPS8rjDeHaJXBnFJuFEXd3Q= sha1:kIS+gFS9gpIx7TErmwFzBPj5Qpg= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:170512 X-Mailman-Approved-At: Thu, 02 Jul 2009 18:00:12 -0400 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:65727 Archived-At: 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))