Gah, I hate this. The Alt key correctly allows me to type []|{}“”‘’ and many other important characters – but the Option key still acts as Super modifier for Emacs. Damn. I want Meta!

The following gives me Meta on the option key in Emacs, but Alt is also Meta instead of level shifting! And in the terminal, the Alt key appears to be always on: Hitting E or T gets me the Edit or Terminal menu!

    ! Option key is alt/meta
clear mod1
clear mod2
clear mod3
clear mod4
clear mod5
keycode 133 = Meta_L
! Alt key switches levels
keycode 64 = ISO_Level3_Shift

Every now and then I totally understand why I preferred the proprietary Apple + Mac OS solution. I must have wasted six hours on this topic alreay. Think about it. The amount of money I could have earned in six hours. What I could have bought with that.

All wasted in order to get the fucking keyboard to do what I fucking want. A useless waste of time. And it still doesn’t work. This makes me very, very angry.

And when I test it with xev, everything seems to work! XLookupString returns the correct strings.

What the hell is going on?

When I just use the following, neither Alt nor Option key have an effect.

    ! Option key is alt/meta
clear mod1
clear mod2
clear mod3
clear mod4
clear mod5
keycode 133 = Meta_L

When I then add the following line, both Alt key and Option key start acting as Meta in Emacs!

    add mod1 = Meta_L

Apparently the Alt_L binding for the Alt key is enough for Emacs to recognize it, even though it’s not bound to mod1.

AlexSchroeder 2010-04-12 08:25 UTC

Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. See Info for text formatting rules. You can edit this page if you need to fix typos. You can subscribe to updates by email without leaving a comment.