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

I am running emacs 24.3 through the terminal on OS X 10.8.4. I would like to modify the meta-key which is currently set to be the ESC key. I have successfully changed the meta-key from ESC to option/alt however I am interested in remapping the meta-key to be the left-shift key.

  1. How can I change the meta-key in emacs running from the terminal to any other key?
  2. Specifically, I would like to change the meta-key to left-shift as this would be really close to where my fingers are usually placed.
  3. Can this be configured through emacs via emacs-lisp? Or, must this be configured through OS X settings such as how I changed the caps-lock key?

All help is greatly appreciated!

share|improve this question
Ummm... Isn't Meta alt? Or have you not yet fixed the default terminal key bindings so that alt actually works...? – demure Jun 13 '13 at 13:11
I have made a few customizations here and there by searching the web and finding what I like, but I do not remember "default terminal key bindings" so how would I do that? – CodeKingPlusPlus Jun 13 '13 at 13:17
Terminal -> Preferences -> Settings -> click your profile -> Keyboard -> "Use option as Meta key". That way you have a normal terminal. Also, I would suggest iTerm2 over, but that is a digression. – demure Jun 13 '13 at 13:24
Is it possible to change the meta-key to ANY combination of keys? Right now I have M-x bound to \C-x\C-m. – CodeKingPlusPlus Jun 13 '13 at 18:55
It's there, at the bottom. ( picture – demure Jun 13 '13 at 20:19

You must log in to answer this question.

Browse other questions tagged .