unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Ehud Karni" <ehud@unix.mvs.co.il>
Cc: help-gnu-emacs@gnu.org
Subject: Re: mapping ESC versus META
Date: Mon, 28 Nov 2005 11:01:06 +0200	[thread overview]
Message-ID: <200511280901.jAS916in007322@beta.mvs.co.il> (raw)
In-Reply-To: <yzl7jatlg3j.fsf@rgassoc-cs.local> (cstacy@news.dtpq.com)

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	other threads:[~2005-11-28  9:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-28  1:24 mapping ESC versus META Christopher C. Stacy
2005-11-28  9:01 ` Ehud Karni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200511280901.jAS916in007322@beta.mvs.co.il \
    --to=ehud@unix.mvs.co.il \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).