|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- From: Jonathan Tran <jonnytran@gmail.com>
- To: philly-lambda@googlegroups.com
- Subject: Re: emacs key bindings
- Date: Fri, 28 Aug 2009 17:57:16 -0400
- Authentication-results: gmr-mx.google.com; spf=pass (google.com: domain of jonnytran@gmail.com designates 209.85.211.173 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=jR58Ngqy8uG/wHtrZ/wfWXmR6H0wc+dY8nxQ9OrhG6k=; b=uJvNUe1MDneGEW58c/7NV0Evtms87yAH4oCESceBns8U7qzzy42YNVMwNxmllzQuvv QH+GdhbKBcpHm78Eqwb3bgaoU0z05INPmImkz824h+0+eqs7wRcBSQo1ADDk91Uorpda Df3QkTULFZZFjRWY1d0exuAyH0IsNHRLXSSUU=
- 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=uCTL8ql7LdJhC50sU5FUWpfXYFEVN4juyxNUVbY9Snc=; b=r7sen+PQChbpk184bN2ep6vn8e2pgnILX+2SyLRGEcZ7gm5vGCQngi7vDpVD0YJbpH +x+4JQXQ7OrUUgp6wQpfmMYInJzkXGhHJ4Fw/AHC8Be3h1eU2AmqKUtIQpMC2kZf8xd4 DiYqX8p85Y8xISrvNwNoblmDe6QfMOoKuZUfA=
- Mailing-list: list philly-lambda@googlegroups.com; contact philly-lambda+owner@googlegroups.com
- Reply-to: philly-lambda@googlegroups.com
- Sender: philly-lambda@googlegroups.com
Thank you! That did help a lot! I used xmodmap and got this working
on my linux machine now too.
On Aquamacs, I also found this helpful to allow pasting into Emacs
from other apps since you can no longer use command-v.
(setq x-select-enable-clipboard t)
So in total, on Aquamacs, I'm using:
(setq mac-command-modifier 'control)
(setq mac-pass-command-to-system nil) ; prevent apple-h from working
(setq x-select-enable-clipboard t) ; allow pasting from other apps into Emacs
Jon
On Fri, Aug 28, 2009 at 1:26 PM, Philip<philip.fominykh@gmail.com> wrote:
>
> Hello,
>
> I guess the question was answered already, but here are the details of
> my setup. I use the standard layout in normal mac applications, but I
> move ctrl globally on windows, linux and X11 on mac. The only
> annoyance left is emacs in Terminal.app, but I'm working in
> inputmanager haxy on and off, that might actually get finished one day
> :)
>
> On Mac
>
> For Carbon Emacs (including Aquamacs)
>
> (setq mac-command-modifier 'control)
> (setq mac-option-modifier 'meta)
> (setq mac-control-modifier 'super)
> (setq mac-pass-command-to-system nil) ; prevent apple-h from working
>
> For Cocoa Emacs (23 version)
>
> (setq ns-command-modifier 'control)
> (setq ns-alternate-modifier 'meta)
> (setq ns-control-modifier 'super)
>
> Under X11 I use xmodmap. I run `xev' to get keycodes, then plug them
> into xmodmap file below. (The keycodes are for X11 on my mbp.)
>
> clear control
> clear mod1
> clear mod2
>
> keycode 63 = Control_L
> keycode 66 = Meta_L
> keycode 84 = Meta_R
> keycode 67 = Super_L
> keycode 71 = Control_R
>
> add control = Control_L Control_R
> add mod2 = Meta_L Meta_R
> add mod4 = Super_L
>
> And on windows I use KeyTweak http://webpages.charter.net/krumsick/.
>
> Hope that helps,
> Philip.
>
> On Thu, Aug 27, 2009 at 22:52, 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
>>
>
|
|