diff options
author | John Wiegley <johnw@newartisans.com> | 2018-06-25 12:09:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 12:09:44 -0700 |
commit | 5fb369c96847191c3ded14fc3c1cdc462eac416c (patch) | |
tree | df27b81e248e8dd37cdf605c962578a367e79a44 /lisp/use-package/bind-key.el | |
parent | dc83e2f035033fa038888115a8a92f5df69b1732 (diff) | |
parent | 87e26db44f4abd2e3a076a9b6fda684921883525 (diff) | |
download | emacs-5fb369c96847191c3ded14fc3c1cdc462eac416c.tar.gz emacs-5fb369c96847191c3ded14fc3c1cdc462eac416c.tar.bz2 emacs-5fb369c96847191c3ded14fc3c1cdc462eac416c.zip |
Merge branch 'master' into patch-1
Diffstat (limited to 'lisp/use-package/bind-key.el')
-rw-r--r-- | lisp/use-package/bind-key.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/use-package/bind-key.el b/lisp/use-package/bind-key.el index e5cd73e9ea3..5b375a54597 100644 --- a/lisp/use-package/bind-key.el +++ b/lisp/use-package/bind-key.el @@ -38,6 +38,12 @@ ;; ;; (bind-key "C-c x" 'my-ctrl-c-x-command) ;; +;; If the keybinding argument is a vector, it is passed straight to +;; `define-key', so remapping a key with `[remap COMMAND]' works as +;; expected: +;; +;; (bind-key [remap original-ctrl-c-x-command] 'my-ctrl-c-x-command) +;; ;; If you want the keybinding to override all minor modes that may also bind ;; the same key, use the `bind-key*' form: ;; |