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

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

C-X=control+x
M-X=option/alt+x

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
up vote 15 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

You must log in to answer this question.

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