Is there any way to bind a command to a key combination like AltGr-f
?
The reason I ask is the following: I use the “US international” keyboard layout (on Linux), which remaps the right Alt key to AltGr (aka Level3 shift), so that I can type certain accented characters I need. But this keyboard layout also has the nice side-effect of making some new (and very convenient) key combinations available; for instance, AltGr-t
inserts þ, which I never use, so I can rebind it to something else. The problem is that AltGr-f
inserts an f, and not some useless symbol, so I can't bind that key to a command (similar issue with the characters g, h, b). I know I could use xmodmap to assign some random symbol to AltGr-f
, but is there a pure Emacs way to do that?
AltGr
is no modifier (it enables the third level map), Emacs just gets the generated keysyms likeþ
which you can inspect withF1 k þ
.AltGr-f
to a different keysym at the xkb level.key-translation-map
and similar stuff that seem to work at a lower level and might know about AltGr.