From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: deprecated Newsgroups: gmane.emacs.help Subject: Re: Mac Apple/Command key on linux (or even just "Command-key in emacs on linux") Date: Sat, 29 Dec 2007 06:46:53 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <70318A4F-D29D-46E4-A288-C7483E2ABFEA@Web.DE> <53e1b0060712271142x19ac9afer5f270e0ad1ad4135@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1198942845 9065 80.91.229.12 (29 Dec 2007 15:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2007 15:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 29 16:40:59 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 1J8do0-0002Ll-Kd for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Dec 2007 16:40:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8dnf-0004Vu-8m for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Dec 2007 10:40:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i12g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 200.95.224.39 Original-X-Trace: posting.google.com 1198939613 2031 127.0.0.1 (29 Dec 2007 14:46:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 29 Dec 2007 14:46:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i12g2000prf.googlegroups.com; posting-host=200.95.224.39; posting-account=SZxXEQoAAADzSLhH3Wzy4ReePfy7-Kua User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b2) Gecko/2007121014 Firefox/3.0b2,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:154962 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:50384 Archived-At: On Dec 27, 7:06=A0pm, David Brodbeck wrote: > On Dec 27, 2007, at 11:42 AM, Livin Stephen Sharma wrote: > > On 27/12/2007, Peter Dyballa wrote: > > Am 26.12.2007 um 20:57 schrieb Livin Stephen: > > > I'd like to know how the keyboard's Command Key can be mapped to =A0 > > Ctrl > > > on linux. > > Are you using X11 or some terminal emulation to connect to the Linux > > side from your Mac? > > > I connect using VNC - kinda like Remote Desktop, I guess? > >http://www.realvnc.com/vnc/index.html > >http://sourceforge.net/projects/cotvnc/ > > > "... A VNC client allows one to display and interact with a remote =A0 > > computer screen. ... " > > VNC emulates an X server, so xmodmap is probably what you want. And to find out which keys to map, you can use "xev". Run it on your linux server while connected via vnc. It gives you a little window that will register all your keypresses and tell you the relevant keysym and keycode. However, I'm not sure this will be any help. With the VNC client that I use (Chicken of the VNC), both the Command and Option key on my powerbook seem to generate the same key on the linux side - keycode 64 (keysym 0xffe9 Alt_L). This means that if you bind the Command key to Ctrl in emacs, you won't be able to use the Option key for meta. Perhaps you could bind the Ctrl key to meta. I haven't found any way of fixing this with Chicken of the VNC, but other vnc clients might be better in this regard. Personally, I avoid "emacs pinky syndrome" by using my thumb instead... Cheers Will