Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So, this is default my setup now: Mac OSX + Aquamacs


So, my command is basically unused in emacs. So, I need to remap control to command (UPDATE: and vice versa) ONLY for emacs, but not for other Mac application.

Is it possible?

share|improve this question

1 Answer 1

up vote 12 down vote accepted

So you want the command key to function as a control key in Emacs? Add this to your ~/.emacs file:

(setq mac-command-modifier 'control)
share|improve this answer
Awesome that worked like a charm! But, I wanted to swap the functionality, i.e. for emacs, put the functionality of command to control and vice-versa. Any suggestions on that? – zengr Jun 15 '11 at 10:16
zengr: sure, (setq mac-control-modifier 'meta) – Chris Poole Jun 15 '11 at 14:33
Done, awesome!! – zengr Jun 15 '11 at 18:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.