help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can one define global-set-key to override mode-based keymap?


From: Liu Fung Sin
Subject: Can one define global-set-key to override mode-based keymap?
Date: 12 Nov 2006 18:19:11 -0800
User-agent: G2/1.0

Hi,

I like using the arrow keys to move around so I can free up Ctrl-F
Ctrl-B Ctrl-N and Ctrl-P and rebind them for some commands that I use
often.

For instance, I have

(global-set-key "\C-n" 'other-window)

in my .emacs

This works great until I invoke another major mode.

Like in dired, the dired mode map has C-n bound to dired-next-line.

C-n runs the command dired-next-line
   which is an interactive compiled Lisp function in `dired'.
(dired-next-line ARG)


Is there a way to define a key as special using global-set-key (or
otherwise) so that no other modes can override my .emacs setting?

Thanks.
-- fungsin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]