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 want to get more combos in Emacs, so I tried to bind Alt, Super, Hyper via modmap to keys. I failed at it. So I tried to use xdotool.

I started emacs -Q for clean experiment. Pressed C-hc and executed in other terminal:

xdotool key  --window 119537875 "meta+x"
xdotool key  --window 119537875 "alt+x" 

Both commands resulted in M-x runs the command execute-extended-command. So, Emacs do not differ between Alt and Meta. How can I fix it?

share|improve this question
    
How do you distinguish from Alt and Meta, what physical keys would they be? Also I think you mean C-h c as C-h C-c is describe-copying here. (What's Hyper? too.) – Nikana Reklawyks Oct 30 '12 at 7:43
    
This fancy modifiers bound to keys I bind them to via modmap. C-h c is describe-key-briefly. EDIT: Sorry for mistype of this binding. Thanks for correction. – KAction Oct 31 '12 at 6:31
    
Could someone explain to me how to bind ANY key to the meta key in emacs through the terminal? I am running OS X 10.8.3. Preferably I would like to bind [left-shift] to the meta-key – CodeKingPlusPlus Jun 13 '13 at 12:30

You must log in to answer this question.

Browse other questions tagged .