Remap command key in mac only for emacs

Solution 1:

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)