Is there a way to use the Apple command key in Emacs in the terminal? It would be nice to expand the set of easy to get at key bindings I can use.

  • Related thread: Problems with keybindings when using terminal. – Dan Jan 28 '15 at 14:55
  • 1
    I don't think it's possible in Terminal.app, as supplied by OS X. But if you install iTerm, you can remap the modifier keys extensively, and that opens up some possibilities. I haven't explored those possibilities, though, so I don't know for sure how much you can achieve that way. – Harald Hanche-Olsen Jan 28 '15 at 16:51
  • I'm using iTerm. I've assumed that I would need to bind command chords to sending magical hex values, but I haven't found a resource that helps me. – Jake Pearson Jan 28 '15 at 22:13

The answer below tells you how to use Command as a second, redundant Meta key, which is pointless. As far as I know, it's not possible to use Command as a distinct modifier key in Terminal/iTerm---say, by mapping Command it to the Hyper key, for instance---the way you can with GUI Emacs.


First stem, get iTerm!

After that, (this has been answered here, so I can't take credit for it.)

Go to Bookmarks > Manage Profiles. Then select Keyboard Profiles > Global and choose Option Key as Meta.


cmd-key-happy will do this for Terminal - and other applications.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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