Remap command key in mac only for emacs

11

3

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?

zengr

Posted 2011-06-12T21:30:46.270

Reputation: 1 334

Answers

19

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)

Chris Poole

Posted 2011-06-12T21:30:46.270

Reputation: 1 749

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 – 2011-06-15T10:16:56.337

zengr: sure, (setq mac-control-modifier 'meta) – Chris Poole – 2011-06-15T14:33:23.333

Done, awesome!! – zengr – 2011-06-15T18:09:18.857