]> git.eshelyaron.com Git - emacs.git/commitdiff
Change bind-key* behavior to mimic bind-keys*
authorJohn Wiegley <johnw@newartisans.com>
Sat, 21 Mar 2015 08:31:59 +0000 (03:31 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Sat, 21 Mar 2015 08:32:10 +0000 (03:32 -0500)
Fixes https://github.com/jwiegley/use-package/issues/148

lisp/use-package/bind-key.el

index 083c8b1c0a687305a3442e6ce436c4419aad6310..12502c07c382fddb98d8b809f7319059e656cacb 100644 (file)
@@ -165,9 +165,7 @@ spelled-out keystrokes, e.g., \"C-c C-z\". See documentation of
   `(bind-key ,key-name nil ,keymap))
 
 (defmacro bind-key* (key-name command)
-  `(progn
-     (bind-key ,key-name ,command)
-     (define-key override-global-map ,(read-kbd-macro key-name) ,command)))
+  `(bind-key ,key-name ,command override-global-map))
 
 (defmacro bind-keys (&rest args)
   "Bind multiple keys at once.