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

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

Re: mapping ESC versus META


From: Ehud Karni
Subject: Re: mapping ESC versus META
Date: Mon, 28 Nov 2005 11:01:06 +0200

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




reply via email to

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