From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Remove local key binding in Dired Date: Thu, 2 Jul 2009 06:34:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87iqib1snz.fsf@es.aau.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246573090 16329 80.91.229.12 (2 Jul 2009 22:18:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2009 22:18:10 +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:18:03 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 1MMUbP-0000cE-S9 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2009 00:18:00 +0200 Original-Received: from localhost ([127.0.0.1]:40536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMUbP-0002NA-5x for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jul 2009 18:17:59 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r33g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1246541679 26146 127.0.0.1 (2 Jul 2009 13:34:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 2 Jul 2009 13:34:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r33g2000yqn.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170514 X-Mailman-Approved-At: Thu, 02 Jul 2009 18:17:36 -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:65737 Archived-At: On Jul 1, 11:54 pm, Torben Knudsen wrote: > I have the following which I find conveinent > > ;;; Window spliting > (global-set-key (kbd "M-3") 'split-window-horizontally) ; was digit-argum= ent > (global-set-key (kbd "M-2") 'split-window-vertically) ; was digit-argumen= t > (global-set-key (kbd "M-1") 'delete-other-windows) ; was digit-argument > (global-set-key (kbd "M-0") 'delete-window) ; was digit-argument > (global-set-key (kbd "M-o") 'other-window) ; was prefix > > 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? you might try the latest version of ergoemacs, which fixes this. http://code.google.com/p/ergoemacs/ The code that fixes this is this: (add-hook 'dired-mode-hook (lambda () (define-key dired-mode-map (kbd "C-n") 'new-empty-buffer) ; was dired-next-line (define-key dired-mode-map (kbd "M-o") 'other-window) ; was dired- omit-mode (define-key dired-mode-map (kbd "M-s") 'isearch-forward) ; was prefix in emacs 23. )) some explanation here: =E2=80=A2 How To Reclaim Keybindings In Emacs http://xahlee.org/emacs/reclaim_keybindings.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84