help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using AltGr as standard modifier key in emacs


From: Javier
Subject: Re: Using AltGr as standard modifier key in emacs
Date: Tue, 13 Oct 2015 18:43:39 +0000 (UTC)
User-agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64))

> Typing this in a terminal should do the trick
> 
> xmodmap -e "keycode 108 = Hyper_L" ; xmodmap -e  "add mod4 = Hyper_L"
> 

Oops, it turns out to remap rightAlt the sequence is

xmodmap -e "clear mod1" ; xmodmap -e "add mod1 = Alt_L Meta_L" ; xmodmap -e 
"keycode 108 = Hyper_R" ; xmodmap -e "add mod3 = Hyper_R"

http://stackoverflow.com/questions/28527938/xkb-configuration-for-emacs

I assumed keycode 108 is the keycode for right alt, which should
be ok for a modern pc-keyboard.  You can check the keycode number with xev.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]