Emacs Keys: Super Hyper
What is Super Key, Hyper Key
Emacs supports extra modifier keys called Super and Hyper. These keys are historically on Lisp Machine Keyboards ⌨ .
You can make any of ❖ Window or ▤ Menu or ⌥ option do Hyper or Super .
What Command Uses Super or Hyper Key
By default, emacs does not bind any command to super or hyper key.
Microsoft Windows, Setup Super Hyper Keys
Mac, Setup Super Hyper Keys
Linux, Setup Super Hyper Keys
- By default, the ❖ Window key does Super.
- On Linux, you define Super and Hyper key in the OS.
- For example, in Ubuntu 11.04, it's under menu [System ▸ Preferences ▸ keyboard] then “Layout” tap, “Options…” button.
Note that some Linux predefines some Super keybinding. You need to take them off before emacs can see it. Best way to check is simply try define the key in emacs first and see if it works.
Super Hyper Keybinding Syntax
H
is syntax for Hyper.s
(lowercase s) is syntax for Super.
;; examples of keybinding with hyper or super key ;; H is for hyper (global-set-key (kbd "H-b") #'left-char) ;; lower case “s” is for super (global-set-key (kbd "s-b") #'left-char) ;; Hyper+Meta+b (global-set-key (kbd "H-M-b") #'left-char) ;; Meta+Super+b (global-set-key (kbd "M-s-b") #'left-char)
🛑 WARNING: Key Ghosting
Be aware that most keyboards won't be able to detect certain combination of keys. This is called “n-key rollover”.
For example, on Microsoft Natural Ergonomic 4000 keyboard, the key ▤ Menu+RShift+x does not register (but with left Shift it does). So, if you have set ▤ Menu to do Hyper, then Hyper+RShift+X won't work.
Vast majority of keyboards have ghosting problem, including Apple keyboards. For detail, see: What is NKRO, N-key Rollover? .