UP | HOME
RSS | Source | License

Emacs Keymap Precedence

Discussion from a post in emacs-china. Copied from xuchunyang.

As a quick note, Emacs keymaps take precedence as follows:

  1. overriding-terminal-local-map
  2. overriding-local-map
  3. text property's 'keymap property
  4. emulation-mode-map-alists
  5. minor-mode-overriding-map-alist
  6. minor-mode-map-alist (Minor Mode)
  7. text property's 'local-map property
  8. (current-local-map) (Major Mode)
  9. (current-global-map) (Global Map)

Related Emacs Manual Node.

Written by Yuan Fu <casouri@gmail.com>

First Published on 2018-11-15 Thu 00:00

Last modified on 2018-11-15 Thu 18:50