From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Mac Apple/Command key on linux (or even just "Command-key in emacs on linux") Date: Thu, 27 Dec 2007 04:48:43 -0800 (PST) Organization: http://groups.google.com Message-ID: <25bea3f1-20af-409f-8394-6019c3847669@i29g2000prf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1198762884 18989 80.91.229.12 (27 Dec 2007 13:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2007 13:41:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 27 14:41:37 2007 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.50) id 1J7szQ-0008Na-Fe for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Dec 2007 14:41:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7sz5-0001Qv-Ku for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Dec 2007 08:41:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i29g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 64 Original-NNTP-Posting-Host: 64.9.239.250 Original-X-Trace: posting.google.com 1198759723 15672 127.0.0.1 (27 Dec 2007 12:48:43 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 27 Dec 2007 12:48:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i29g2000prf.googlegroups.com; posting-host=64.9.239.250; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:154921 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:50343 Archived-At: if i understand you correctly... you want to use your mac to connect to a remote linux server (using the local terminal app), and invoke the remote emacs in the terminal? in that case, i don't think remaping keys on the linux or rebinding keys within the remote emacs is what you want. i think to achieve what you want, is probably to remap the key on your mac or terminal app. I have written several articles on this... i think it'll be helpful: =E2=98=85 How To Avoid The Emacs Pinky Problem http://xahlee.org/emacs/emacs_pinky.html =E2=98=85 A Ergonomic Keyboard Shortcut Layout http://xahlee.org/emacs/ergonomic_emacs_keybinding.html The above 2 are general advices. Following are some essays that address how to remap keys: =E2=98=85 Mac OS X Keybinding http://xahlee.org/emacs/osx_keybinding.html (this shows you the system-wide general mechanism on remaping keys on mac os x.) =E2=98=85 How to Define Keyboard Shortcuts in Emacs http://xahlee.org/emacs/keyboard_shortcuts.html =E2=98=85 How to Swap Modifier Keys on OS X http://xahlee.org/emacs/osx_swapping_modifier_keys.html I think the last one is really what you need. But if you really want is swapping modifier keys on a linux machine, your solution is xmodmap. I'm guessing there's GUI buildin in most linuxes that does this... but if not, you can =E2=80=9Cman xmodmap=E2=80=9D = or see a sample file here http://xahlee.org/PageTwo_dir/Personal_dir/dvorakKeymap.txt there are lots resoures on the web about how to use xmodmap. e.g. http://www.emacswiki.org/cgi-bin/wiki/MovingTheCtrlKey Xah xah@xahlee.org =E2=88=91 http://xahlee.org/ On Dec 26, 11:57 am, Livin Stephen wrote: > I own and use a PowerBook G4. > > Also, I'm an emacs user, and to save my pinky a lot of grief I use the > Command key (=EF=A3=BF) as the Ctrl key within emacs. This works fine when= > using my local (powerbook) installation. > > However, for work, I need to connect to linux servers using VNC. The > emacs installation I have running at work (being on linux) doesn't see/ > recognise the command-key. > > I'd like to know how the keyboard's Command Key can be mapped to Ctrl > on linux. Either using the linux OS or even just variables/options > within emacs-on-linux.