Emacs on Windows: set Meta Super Hyper Keys

By Xah Lee. Date: . Last updated: .

Setup Meta Super Hyper Keys on Microsoft Windows

;; for emacs running on Windows
;; set keyboard Win key or other to type Super or Hyper or other

;; Left Windows key
(setq w32-pass-lwindow-to-system nil)
(setq w32-lwindow-modifier 'super)
;; value can be 'hyper, 'super, 'meta, 'alt, 'control or 'shift

;; Right Windows key
(setq w32-pass-rwindow-to-system nil)
(setq w32-rwindow-modifier 'super)

;; Menu key
(setq w32-pass-apps-to-system nil)
(setq w32-apps-modifier 'hyper)

🛑 WARNING: in Microsoft Windows, some keyboard shortcuts you cannot override, e.g. ❖ Window+L for lock screen, unless you disable it in Windows Registry .

Reference

Emacs, meta super hyper keys

Emacs on Microsoft Windows