Reputation: 21877
I have launched emacs (emacs -Q
) in the console(Ctrl+Alt+F1). The "left Alt key" is
working whereas the "right Alt key" is not working. How to fix the problem. I am running emacs on archlinux
Upvotes: 3
Views: 4940
Reputation: 1
There is a workaround. Hit Esc
key to activate the alt key as meta in emacs.
So a command like M-v
becomes Esc M-v
Upvotes: 0
Reputation: 671
The solution is described here:
http://www.joshstaiger.org/archives/2005/04/fixing_the_righ.html
It needs some modifications though (see item 3.2 below).
Otherwise one would not be able to type anything in current console after the first press of [Right Alt]
.
If this happened to you, switch to other console (e.g. [Ctrl+Alt+F2]
) and restore old keymap.
Here is the brief description of the modified solution:
dumpkeys >> mykmap
cp mykmap oldkmap
[Right Alt]
keycode using showkey
command. Let's assume it is 100
.mykmap
:
keycode 100 = AltGr
keycode 100 = Alt
alt keycode 100 = Compose
loadkeys mykmap
Upvotes: 1
Reputation: 9262
This behavior is controlled by the keyboard layout you are using. In the layout that you are using, the left alt is Meta
, whereas the right alt is Alt-graphic
which allows you to enter accentuated character. Change your keyboard layout to one not using the right alt as Alt-graphic
Upvotes: 3