From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: JF Mezei Newsgroups: gmane.emacs.help Subject: Re: Mac - X11 - emacs - meta - alt key Date: Mon, 15 Mar 2010 01:12:05 -0400 Organization: Unlimited download news at news.astraweb.com Message-ID: <000c26cd$0$1633$c3e8da3@news.astraweb.com> References: <4b9db71a$0$30332$c32e2966@unlimited.newshosting.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1273054496 21447 80.91.229.12 (5 May 2010 10:14:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 10:14:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 12:14:54 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9bcx-0002pg-Vk for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 12:14:52 +0200 Original-Received: from localhost ([127.0.0.1]:39372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9bcx-0002ZF-8c for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 06:14:51 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!news.alt.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) Original-Newsgroups: gnu.emacs.help,comp.sys.mac.system In-Reply-To: <4b9db71a$0$30332$c32e2966@unlimited.newshosting.com> Original-Lines: 40 Original-NNTP-Posting-Host: 973057fe.news.astraweb.com Original-X-Trace: DXC=290o3GfNg2W[3>fhUe^HC[L?0kYOcDh@ZP`SSoGE?R`S:^; XK>fJZ1]G3hJ5gJGWj^V@lgY[30F=\_Vj=SdD6C4U Original-Xref: usenet.stanford.edu gnu.emacs.help:177465 comp.sys.mac.system:877423 X-Mailman-Approved-At: Tue, 04 May 2010 16:46:32 -0400 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:73347 Archived-At: David Rogoff wrote: > I'm still getting used to my Mac and have a strange problem with emacs. > When running Aquamacs on the Mac itself, the Alt/Option key is meta, > which is what I expect. However, I'm also remote accessing a Linux box > via X11/NXClient. When I run emacs (or xemacs) on in Linux, it looks > like X11 has remapped the Mac Command key to be meta. How do I put > this back? On Linux (and on the mac) there is a utility called "xev" (x events). You can test to see what event each key combination generates. xmodmap is the utility you would use on the Mac to remap your keyboard. For instance: cat ~/.xmodmap keycode 79 = KP_F1 keycode 89 = KP_F1 keycode 83 = KP_F3 keycode 75 = KP_F4 keycode 113 = Help keycode 115 = Menu keycode 125 = DRemove keycode 113 = Insert keycode 127 = Select keycode 123 = Find keycode 59 = Delete keycode 111 = F11 F11 F11 F11 keycode 114 = F16 F16 F16 F16 keycode 72 = F17 F17 F17 F17 keycode 87 = F18 F18 F18 F18 keycode 88 = F19 F19 F19 F19 and you use xmodmap .xmodmap to load that new keymapping. YOu need to hunt a bit to find the modifier names. The last 4 lines map 4 different combinations of the keys (I think shift, control,meta and some other).