* mapping ESC versus META
@ 2005-11-28 1:24 Christopher C. Stacy
2005-11-28 9:01 ` Ehud Karni
0 siblings, 1 reply; 2+ messages in thread
From: Christopher C. Stacy @ 2005-11-28 1:24 UTC (permalink / raw)
I run several different versions of Emacs,
and sometimes there is an actual key to be META.
Is there a way I can bind a command to that key
chord combination, but bind a different command
to the ESC sequence? In other words, when I
hold down the META shift key and press letter "Z",
I would get one command, but when I type "ESC Z"
I would get a different command.
On the Macintosh, the META key might be either
the Command or the Option key. As it happens,
I always have it set to be the Command key.
I want this to work under X11 on the Mac, and Linux.
It would be best if it also worked for MS Windows.
The situation where I may not a META key is when
running Emacs under the various Terminal programs
on those various platforms.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mapping ESC versus META
2005-11-28 1:24 mapping ESC versus META Christopher C. Stacy
@ 2005-11-28 9:01 ` Ehud Karni
0 siblings, 0 replies; 2+ messages in thread
From: Ehud Karni @ 2005-11-28 9:01 UTC (permalink / raw)
Cc: help-gnu-emacs
On Mon, 28 Nov 2005 01:24:20 GMT, cstacy@news.dtpq.com (Christopher C. Stacy) wrote:
>
> I run several different versions of Emacs,
> and sometimes there is an actual key to be META.
> Is there a way I can bind a command to that key
> chord combination, but bind a different command
> to the ESC sequence? In other words, when I
> hold down the META shift key and press letter "Z",
> I would get one command, but when I type "ESC Z"
> I would get a different command.
Sure you can. Just add the following line to your .emacs:
(setq meta-prefix-char nil)
> On the Macintosh, the META key might be either
> the Command or the Option key. As it happens,
> I always have it set to be the Command key.
> I want this to work under X11 on the Mac, and Linux.
> It would be best if it also worked for MS Windows.
I don't know about Mac, but the above works well for X11 Emacs
on Linux and M$Windows (under Cygwin) and NTEmacs IIRC.
Ehud.
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-28 9:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-28 1:24 mapping ESC versus META Christopher C. Stacy
2005-11-28 9:01 ` Ehud Karni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).