Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs keyboard mappings on a macbook

Tags:

emacs

macos

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 the other keyboards.

like image 957
rampr Avatar asked Jul 06 '10 17:07

rampr


People also ask

How do I get keyboard map on Mac?

On your Mac, click the Input menu in the menu bar, then choose Show Keyboard Viewer. If the command isn't shown, choose Apple menu > System Preferences, click Keyboard , click Input Sources, then select “Show Input menu in menu bar.”

How can I remap my keyboard keys Mac?

On your Mac, choose Apple menu > System Preferences, click Keyboard , then click Keyboard. Click Modifier Keys. For each modifier whose default action you want to change, click the pop-up menu, then choose the action you want performed when you press the key, or choose No Action.


2 Answers

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

like image 180
Justin Abrahms Avatar answered Oct 21 '22 11:10

Justin Abrahms


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.

like image 31
pajato0 Avatar answered Oct 21 '22 10:10

pajato0