unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah Lee <xah@xahlee.org>
To: help-gnu-emacs@gnu.org
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)	[thread overview]
Message-ID: <25bea3f1-20af-409f-8394-6019c3847669@i29g2000prf.googlegroups.com> (raw)
In-Reply-To: d91b341a-c028-42cb-bc5e-fcc4613ef31d@d21g2000prf.googlegroups.com

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:

★ How To Avoid The Emacs Pinky Problem
http://xahlee.org/emacs/emacs_pinky.html

★ 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:

★ 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.)

★ How to Define Keyboard Shortcuts in Emacs
http://xahlee.org/emacs/keyboard_shortcuts.html

★ 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 “man xmodmap” 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
∑ http://xahlee.org/

On Dec 26, 11:57 am, Livin Stephen <livin.step...@gmail.com> 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 () 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.

  reply	other threads:[~2007-12-27 12:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-26 19:57 Mac Apple/Command key on linux (or even just "Command-key in emacs on linux") Livin Stephen
2007-12-27 12:48 ` Xah Lee [this message]
2007-12-27 15:57 ` Peter Dyballa
2007-12-27 19:42   ` Livin Stephen Sharma
2007-12-28  1:06     ` David Brodbeck
     [not found]     ` <mailman.5446.1198804015.18990.help-gnu-emacs@gnu.org>
2007-12-29 14:46       ` deprecated

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25bea3f1-20af-409f-8394-6019c3847669@i29g2000prf.googlegroups.com \
    --to=xah@xahlee.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).