The correct ALT key does not work as a meta key in emacs

I ran emacs ( emacs -Q) in the console ( Ctrl+ Alt+ F1). The "left key Alt" whereas the "right Altkey" does not work. How to fix the problem. I am running emacs on archlinux

+3
source share
2 answers

This behavior is controlled by the keyboard layout you are using. In the layout you are using, the left is alt Meta, while the right is alt Alt-graphic, which allows you to enter an underlined character. Change the keyboard layout to one without using the right alt, asAlt-graphic

+2
source

:
http://www.joshstaiger.org/archives/2005/04/fixing_the_righ.html

(. 3.2 ). [Right Alt] - . , (, [Ctrl+Alt+F2]) .

:

  • :
    dumpkeys >> mykmap
    :
    cp mykmap oldkmap
  • Capture [Right Alt] keycode showkey. , 100.
  • mykmap:
    • :
      keycode 100 = AltGr
      :
      keycode 100 = Alt
    • ( ):
      alt keycode 100 = Compose
      .
  • Download new layout:
    loadkeys mykmap
  • Make changes permanent (e.g. add the last command to ~ / .bashrc).
+1
source

All Articles