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

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

Re: global-set-key not global?


From: Kai Grossjohann
Subject: Re: global-set-key not global?
Date: Sun, 08 Feb 2004 14:29:39 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux)

Emory Smith <emory.smith@mac.com> writes:

> 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?

No.  But the global bindings for C-j and M-j should work for all
modes, so that there is no need for a mode to bind C-j and M-j itself.

So Stefan was only referring to these two keys.  For other keys, it's
different.

Kai




reply via email to

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