开发者

Emacs keyboard mappings on a macbook

I recently switched to a macbook. I miss the right control key and my little finger started to ache and thus I mapped my Cmd to Ctrl inside emacs alone and I've mapped Caps to Ctrl and Ctrl to Caps system-wide.

Does anyone have a better config before I get used to this ? What is yours? I'm particularly interested in the keyboard mappings.

Edit: I'm using aquaemacs and that too for the last few days.

Edit2: I've reset the mapping between Cmd and Ctrl because it felt weird since Cmd is in the position where Meta usually is in th开发者_如何学Pythone other keyboards.


Caps lock is control. Never use capslock (alternatively bind it to the conrol you no longer need). Cmd is meta.

Also, while you're at it, ditch aquamacs. Its long been known as "not emacsy enough". Emacs 23 now comes with a cocoa frontend that makes it nice to look at on OSX, so the main reason for using it is no longer necessary.

See: http://www.emacswiki.org/emacs/EmacsForMacOS#toc11


I recently bought an early 2011 MacBook Pro. At first I ran Mac OS X and could not abide the lack of symmetry for the control and meta (alt) keys as is usually found on PC keyboards. But these MBP keyboards do have nicely symmetric option (aka alt) and command (aka apple/win) keys adjacent to either side of the space bar. And even better still is the fact that the System Preferences feature allows one to remap those keys (and the single control key as well). So I put "command" on the control key, "control" on the two option keys and "alt/meta" on the two command keys. Worked for me right up to the point that I could no longer abide Mac OS X any longer and put Kubuntu on my laptop. :-) Kubuntu pretty much provides the same functionality, fwiw.


Personally I feel it's best to map both Command keys and both Option keys to Meta (now you'll have more Metas you can press and reduce accidental errors). I have little use for a Super key, but if you do - you might consider using the Options for it. Caps should definitely be remapped to Control - but this is common advice, no matter what keyboard one has. The most valuable keymapping advice I can give you is to remap Return (only when held down) to Control as described here. I used to remap the right Option to Control, but it always felt awkward (+ I lost a valuable key that way) - the Return -> Control solution was truly fantastic improvement for me (and hopefully for others as well).


I'm in the same situtation. I finally decided on the following mapping which only took be a day to get used to:

command => option, option => control, control => command,

I just leave cap locks as is.


Download free Karabiner app. Remap right option to right control. Done.

https://pqrs.org/osx/karabiner/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜