all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Remove local key binding in Dired
Date: Thu, 2 Jul 2009 06:34:39 -0700 (PDT)	[thread overview]
Message-ID: <bab7a54c-d06a-496b-9926-22035083fe59@r33g2000yqn.googlegroups.com> (raw)
In-Reply-To: 87iqib1snz.fsf@es.aau.dk

On Jul 1, 11:54 pm, Torben Knudsen <t...@es.aau.dk> wrote:
> I have the following which I find conveinent
>
> ;;; Window spliting
> (global-set-key (kbd "M-3") 'split-window-horizontally) ; was digit-argument
> (global-set-key (kbd "M-2") 'split-window-vertically) ; was digit-argument
> (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:

• How To Reclaim Keybindings In Emacs
  http://xahlee.org/emacs/reclaim_keybindings.html

  Xah
∑ http://xahlee.org/

  parent reply	other threads:[~2009-07-02 13:34 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
2009-07-02 13:34 ` Xah Lee [this message]
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=bab7a54c-d06a-496b-9926-22035083fe59@r33g2000yqn.googlegroups.com \
    --to=xahlee@gmail.com \
    --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.