I have a kinesis keyboard and would like to have the home key act as super in emacs without requiring me to remap my keyboard as well as edit my key bindings. Is there a simple way of doing this?
The closest thing to a solution I know of is to do this:
(define-key key-translation-map (kbd "<home>") #'event-apply-super-modifier)
It's not quite the same as turning
super though. Specifically, if you press
home, release it, and then press e.g.
a, Emacs will interpret it as
s-a even though you released
home before pressing
That's not necessarily a bad thing (in fact, it can have ergonomic benefits), but it may not be what you want (and it can be a bit weird to have this one modifier work that way, if you don't configure the others to behave the same).
Of course, there are
event-apply-*-modifier functions for other modifiers as well. Modifiers that apply to keys after you've released them are sometimes referred to as "sticky modifiers".