Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29) of 2010-05-08 on black.local on OS X. I downloaded it from here:

My problem is that it doesn't have the command keys mapped to the normal emacs Meta bindings - it has them mapped to what an osx user knows Command-v is now 'cut' for example when I do a describe-keybinding.

How can I get rid of these osx bindings, and make Command mapped back to the normal gnu Meta bindings?

share|improve this question

Found it here:

(setq mac-command-modifier 'meta)
share|improve this answer
Yes, Aquamacs' claim to Apple compatibility is that it overlays Apple's GUI's key bindings over Emacs's. Gnu/Carbon Emacs already uses command as meta and works the way you always thought Emacs did. – JRobert Jul 27 '10 at 17:21
Then add (setq mac-option-modifier nil) to reenable the alt key – volothamp Jan 1 '11 at 18:31
Wha if you decide to use the terminal? – CodeKingPlusPlus Jun 13 '13 at 12:27
@CodeKingPlusPlus You can use option instead in the terminal if you follow this answer: – dar Jun 17 '13 at 11:31
Thanks! However left-shift key is still my ideal choice. – CodeKingPlusPlus Jun 17 '13 at 12:07

Try KeyRemap4MacBook (Works on all macs - despite the name). It allows remapping practically every key on your keyboard (even stuff like different mappings to left and right shift).

When you define your own mappings in a xml file you can use all kinds of fancy options like Application specific mappings and device specific mappings.

You can also alter the keys comfortable in stock emacs with M-x customize-group RET ns RET

A tip - as some people need the alt key to input special characters is to map 'left alt' to 'fn' and set emacs to use 'fn' as 'meta'.

share|improve this answer
+1 for M-x customize-group RET ns RET – pith May 11 '14 at 18:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .