From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tristero Newsgroups: gmane.emacs.help Subject: Re: Opt/Fn as meta? (emacs on macs) Date: Fri, 09 May 2003 16:40:48 GMT Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <060520031719451942%ajanta@no.spam> <1a61f7e5.0305070021.5feb7ff6@posting.google.com> <3EBAD9FE.8010806@yahoo.com> <87znlwin5a.fsf@tleepslib.sk.tsukuba.ac.jp> <090520030440528694%ajanta@no.spam><3EBBB6D5.2000803@mcw.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1052499251 18357 80.91.224.249 (9 May 2003 16:54:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 9 May 2003 16:54:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 09 18:54:10 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19EB6o-0004dD-00 for ; Fri, 09 May 2003 18:52:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19EB4l-0007Zt-07 for gnu-help-gnu-emacs@m.gmane.org; Fri, 09 May 2003 12:50:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!paloalto-snf1.gtei.net!mtvwca1-snh1.ops.genuity.net!crtntx1-snh1.gtei.net!news.gtei.net!paloalto-snr1.gtei.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.7.4 (Darwin) Original-Lines: 49 Original-X-Trace: +rTuhscO/N9V5EO+tgLcczazhIMRqnid1Q8ZbbucMKVZ/T0aWbx4kwA4ski+8uZzqeuesw/eq8uc!lwHyaWDRDFvDrvicxuGhkm8xTCg2i4R+Bgqu/hsLfWeMz+vWOci3INzjx7qZe39ItHan3acmuNXR!jVRTVw== Original-X-Complaints-To: abuse@gte.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Original-NNTP-Posting-Date: Fri, 09 May 2003 16:40:48 GMT Original-Distribution: world Original-Xref: shelby.stanford.edu gnu.emacs.help:112995 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9491 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9491 In article <3EBBB6D5.2000803@mcw.edu>, Rodney Sparapani wrote: > tristero wrote: > >>In article <090520030440528694%ajanta@no.spam>, Ajanta wrote: >> >> >>>But I would also like to try defining >>>Option as Meta. What is the .emacs command for this? Thanks. >>> >>I just posted a description of this for all three osx emacs >>"window-systems" (terminal, carbon/aqua, x11) yesterday. >> > Huh. Where did you post that? Earlier in this thread. Here it is again: There are three cases here, only one of which requires a .emacs change: 1. Running in a Terminal (either gnuemacs or xemacs). Enable the Emulation preference "Use option as meta key". You might also find it useful to enable "Option click to position cursor", which gives you some very basic mouse functionality. 2. Running the carbon gnuemacs. Here you want to add a line to .emacs: (setq mac-command-key-is-meta nil) The effect of this is to make Option act as Meta and Command act as Alt. For clarity you may want to conditionalize this to (eq window-system 'mac). But it's not strictly necessary to do so. 3. Running in X11 (either gnuemacs or xemacs). Here you need to change the X11 modmap. I put the following in ~/.Xmodmap: clear mod1 keycode 66 = Meta_L keycode 63 = Mode_switch add mod1 = Meta_L As in case (2), the effect of this is to make Option be Meta and Command be Alt. NB: the keycode values could well be specific to the Apple Pro keyboard.