[Top][All Lists]

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

global-set-key not global?

From: Emory Smith
Subject: global-set-key not global?
Date: Thu, 5 Feb 2004 10:54:32 -0700

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.

also, how can i use the semicolon in a keybinding. obviously, the following doesnt work:

(global-set-key "\C-;"  'indent-for-comment)

how can i escape the ";" character so that it doesnt look like a comment to elisp?

reply via email to

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