From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: mapping ESC versus META Date: Mon, 28 Nov 2005 11:01:06 +0200 Organization: Mivtach-Simon Insurance agencies Message-ID: <200511280901.jAS916in007322@beta.mvs.co.il> References: Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133168963 2914 80.91.229.2 (28 Nov 2005 09:09:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 09:09:23 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 28 10:09:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Egeza-0006RS-NJ for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Nov 2005 10:08:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgezZ-0003mf-PE for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Nov 2005 04:08:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Egess-0000Gf-QQ for help-gnu-emacs@gnu.org; Mon, 28 Nov 2005 04:01:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Egesq-0000Ee-FO for help-gnu-emacs@gnu.org; Mon, 28 Nov 2005 04:01:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egesp-0000EH-W0 for help-gnu-emacs@gnu.org; Mon, 28 Nov 2005 04:01:12 -0500 Original-Received: from [193.16.147.12] (helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Egesp-0002dH-8S for help-gnu-emacs@gnu.org; Mon, 28 Nov 2005 04:01:11 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.0/8.13.0) with ESMTP id jAS917pq003448 for ; Mon, 28 Nov 2005 11:01:07 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.13.4/8.13.4) with ESMTP id jAS917Jl007325 for ; Mon, 28 Nov 2005 11:01:07 +0200 Original-Received: (from root@localhost) by beta.mvs.co.il (8.13.4/8.13.4/Submit) id jAS916in007322; Mon, 28 Nov 2005 11:01:06 +0200 Original-To: cstacy@news.dtpq.com In-reply-to: (cstacy@news.dtpq.com) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31454 Archived-At: 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 Better Safe Than Sorry