Jonathan Tran on 27 Aug 2009 21:19:50 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: emacs key bindings

  • From: Jonathan Tran <jonnytran@gmail.com>
  • To: philly-lambda@googlegroups.com
  • Subject: Re: emacs key bindings
  • Date: Fri, 28 Aug 2009 00:19:18 -0400
  • Authentication-results: gmr-mx.google.com; spf=pass (google.com: domain of jonnytran@gmail.com designates 209.85.211.191 as permitted sender) smtp.mail=jonnytran@gmail.com; dkim=pass (test mode) header.i=@gmail.com
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received:received-spf:received:dkim-signature :domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding:reply-to:sender:precedence:x-google-loop :mailing-list:list-id:list-post:list-help:list-unsubscribe :x-beenthere-env:x-beenthere; bh=kteoaKN7kMdS5yBPSJ4AE1m3if/S329m/48hftFE8h0=; b=K2EWoFDaHLWmK6oZsn+bVIT9dLd9ZFSuzMLlFxjKxrY0LKHcHK0xbscmSvkyvhs4ez xVEyCi9ZoYHanaPdrKA93hWuK+jsQKz7II3V79SLYdNZSpB5YGC/NwCUMK8ab8RJbByM qnfKSTEHkKACYHHSvGNDDgrMRTkJZvjFcCGmU=
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=xV/yG3+y79FkYdwTfMzDEFs+Etdfo//+F8vZUfC2wZA=; b=eSvLD117i1uGQJdnZ+l+2HSjQ6e/miWSww8Oz0Ua7bIo4NKXvhV24caoKt2kLwYNN2 SN2YleuTvL7w3AAjlyVSYkguONGmhpYFtWzA3eX9BuvxdOBhHHjeGGzKiHi2w70ERXal no4bpwL8kPTz+Mxq3ByzT4+iXjGZQMGyO/xK4=
  • Mailing-list: list philly-lambda@googlegroups.com; contact philly-lambda+owner@googlegroups.com
  • Reply-to: philly-lambda@googlegroups.com
  • Sender: philly-lambda@googlegroups.com

yeah, thanks Jason.  I know about the global rebinding in OS X.  I
guess I wasn't clear.  I was hoping there was a way to only rebind in
Emacs.  Because the whole point is for ergonomics/preventing RSI.  If
you can rebind only in Emacs, you can continue to use command for most
Mac apps, and then in Emacs also use command as the primary key
modifier.  This way you can use your thumb to press the key modifier,
instead of your pinky, which is much more comfortable.

I got this working in Aquamacs, thanks to Aaron!  The magic incantation is:

(setq mac-command-modifier 'control)

Wow, this is really great!  Thanks, everyone!

Jon


On Thu, Aug 27, 2009 at 11:53 PM, Jason Stelzer<jason.stelzer@gmail.com> wrote:
>
> I'm not Philip and I completely forget how to coerce windows, but on a
> mac you can rebind the command to control via system preferences ->
> keyboard. Then hit the modifier keys button and map away.
>
> Of course, this is a global rebinding of the keys. If there's an emacs
> only way to rebind it, I'd be interested in learning it too.
>
> Under linux you can get similar functionality in X11 via xmodmap.
>
>
> Check out http://www.emacswiki.org/emacs/MovingTheCtrlKey
>
>
>
>
> On Thu, Aug 27, 2009 at 10:52 PM, Jonathan Tran<jonnytran@gmail.com> wrote:
>>
>> Philip,
>>
>> you talked about rebinding Control to the Command key in emacs for mac
>> and to Alt on windows.  I think this is a great idea, and I want to
>> try it.  I did a quick google and it wasn't obvious how to do.  Can
>> you teach us?
>>
>> Jon
>>
>
>
>
> --
> J.
>