]> git.eshelyaron.com Git - emacs.git/commitdiff
let bind-key* override minor modes with emulation-mode-map-alists
authorNoam Postavsky <npostavs@gmail.com>
Sat, 13 Apr 2013 20:09:27 +0000 (16:09 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 13 Apr 2013 22:24:52 +0000 (18:24 -0400)
lisp/use-package/bind-key.el

index 0d3039e5e011c63bbd866260fcb2bab817e8aaec..5d125199e704f7075cafca48df86e5cad38cd548 100644 (file)
 
 (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