Emacs: Mac: Meta Super Hyper Keys Settings

By Xah Lee. Date: .

Setup Meta Super Hyper Keys on Mac

;; for emacs running on Mac OS
;; setup emacs keys for Apple keyboard

;; make cmd key do Meta
(setq mac-command-modifier 'meta)
;; value can be 'hyper, 'super, 'meta, 'alt, 'control or 'shift

;; make opt key do Super
(setq mac-option-modifier 'super)

;; make Control key do Control
(setq mac-control-modifier 'control)

;; make Fn key do Hyper
(setq ns-function-modifier 'hyper)

🛑 WARNING: if you set ⌘ command or Fn key, some of their Mac function remains. For example, ⌘ command+Tab still do switch app, and Fn key can still be used as the modifier for multimedia keys. Thanks to jcs, see A Hyper Key for the Mac By Jon Snader. At http://irreal.org/blog/?p=1450

Emacs, meta super hyper keys