projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26bfd9c
)
let bind-key* override minor modes with emulation-mode-map-alists
author
Noam Postavsky
<npostavs@gmail.com>
Sat, 13 Apr 2013 20:09:27 +0000
(16:09 -0400)
committer
Noam Postavsky
<npostavs@gmail.com>
Sat, 13 Apr 2013 22:24:52 +0000
(18:24 -0400)
lisp/use-package/bind-key.el
patch
|
blob
|
history
diff --git
a/lisp/use-package/bind-key.el
b/lisp/use-package/bind-key.el
index 0d3039e5e011c63bbd866260fcb2bab817e8aaec..5d125199e704f7075cafca48df86e5cad38cd548 100644
(file)
--- a/
lisp/use-package/bind-key.el
+++ b/
lisp/use-package/bind-key.el
@@
-80,7
+80,12
@@
(define-minor-mode override-global-mode
"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
(function