diff options
author | Justin Talbott <justin@waymondo.com> | 2018-05-13 00:30:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-13 00:30:24 -0400 |
commit | 642417ac054fc5328ef734ddd7e3dc678cd715b0 (patch) | |
tree | e2875335e046ff43eff29c5faf6f1936763b4554 /lisp/use-package/bind-key.el | |
parent | 85e580a5e4133f033da095851e864a6ab33e67e9 (diff) | |
parent | d2fec5e5e31c282f17ada3a7067df26f1f8662ed (diff) | |
download | emacs-642417ac054fc5328ef734ddd7e3dc678cd715b0.tar.gz emacs-642417ac054fc5328ef734ddd7e3dc678cd715b0.tar.bz2 emacs-642417ac054fc5328ef734ddd7e3dc678cd715b0.zip |
Merge pull request from andschwa/remap-command
Document that remapping commands is supported with bind-key
GitHub-reference: https://github.com/jwiegley/use-package/issues/674
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: ;; |