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

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

Re: Making ESC not a prefix key while keeping Alt = Meta


From: Kevin Rodgers
Subject: Re: Making ESC not a prefix key while keeping Alt = Meta
Date: Sat, 09 Sep 2006 08:49:06 -0600
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

Yevgeniy Makarov wrote:
Since in my Emacs Alt key functions as Meta key, I never have to use
Esc to enter Meta-something. Though this breaks with the long-lasting
Emacs tradition, I would like to make ESC key call keyboard-quit
function, similar to Ctrl-g. Of course, I'd like to keep Alt = Meta. Is
it possible to do so?

I think so:

(global-set-key "\0" (global-key-binding "\e"))
(setq meta-prefix-char ?\0)
(global-unset-key "\e")

--
Kevin





reply via email to

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