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: Thu, 08 May 2003 17:57:36 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> <080520031142459136%sunder_3291@hotmail.nospam> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1052416943 16083 80.91.224.249 (8 May 2003 18:02:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 8 May 2003 18:02:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 08 20:02:21 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 19DpiC-00048T-00 for ; Thu, 08 May 2003 20:01:44 +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 19DphI-0005hW-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 08 May 2003 14:00:48 -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: comp.sys.mac.apps,comp.sys.mac.system,comp.emacs,comp.emacs.xemacs,gnu.emacs.help Original-Followup-To: comp.emacs.xemacs User-Agent: slrn/0.9.7.4 (Darwin) Original-Lines: 39 Original-X-Trace: /b/VKXML2c97l0qUb7c7j3WyOf0RDp4fyQTO+bkijU0LBvXSbGHYcCY2Dqx7DU/qzKPa/y8E0wqE!lm5u8zJNMHXTAQesRrBo4IY8WQgp3yYEXNZDW68/0a0egF9kuFbs7mrTpZJKY8IwKnO2xmBbZgYz!4mm3wQ== 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: Thu, 08 May 2003 17:57:36 GMT Original-Distribution: world Original-Xref: shelby.stanford.edu comp.sys.mac.apps:360888 comp.sys.mac.system:586379 comp.emacs:79119 comp.emacs.xemacs:70839 gnu.emacs.help:112960 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:9455 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9455 In article <080520031142459136%sunder_3291@hotmail.nospam>, Sunder wrote: > 1. Is there any downside to binding Opt or Fn as meta? Never causes me any problems to use Option. > 2. What would I put in my .emacs to make such a binding? 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.