mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
let bind-key* override minor modes with emulation-mode-map-alists
This commit is contained in:
parent
26bfd9ce2f
commit
09b9ef3ae3
1 changed files with 6 additions and 1 deletions
|
@ -80,7 +80,12 @@
|
||||||
|
|
||||||
(define-minor-mode override-global-mode
|
(define-minor-mode override-global-mode
|
||||||
"A minor mode so that keymap settings override other modes."
|
"A minor mode so that keymap settings override other modes."
|
||||||
t "" override-global-map)
|
t "")
|
||||||
|
|
||||||
|
;; the keymaps in `emulation-mode-map-alists' take precedence over
|
||||||
|
;; `minor-mode-map-alist'
|
||||||
|
(add-to-list 'emulation-mode-map-alists
|
||||||
|
`((override-global-mode . ,override-global-map)))
|
||||||
|
|
||||||
(add-hook 'after-init-hook
|
(add-hook 'after-init-hook
|
||||||
(function
|
(function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue