[Top][All Lists]

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

Re: global-set-key not global?

From: Emory Smith
Subject: Re: global-set-key not global?
Date: Sat, 7 Feb 2004 15:50:04 -0700

On Feb 5, 2004, at 12:35 PM, Stefan Monnier wrote:

im using the following in my .emacs:
(global-set-key "\C-j"  'bs-cycle-next)
(global-set-key "\M-j"  'bs-cycle-previous)

but a number of major modes still seem to have C-j bound to insert-newline. it works fine if i use local-set-key inside the add-hook for every mode, but
seems like i shouldnt have to do this.

Indeed.  Report those things as bugs.

so a local keymap entry is not supposed to override a global one?

i didnt think this was actually a bug, but was rather wondering how i might make a global-set-key apply to all major modes, even if they have their own local binding of that key (without using a hook for every mode).

thanks, emory

reply via email to

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