diff options
| author | Andrew Schwartzmeyer | 2018-04-30 09:54:12 -0700 |
|---|---|---|
| committer | Andrew Schwartzmeyer | 2018-04-30 09:55:27 -0700 |
| commit | d2fec5e5e31c282f17ada3a7067df26f1f8662ed (patch) | |
| tree | e2875335e046ff43eff29c5faf6f1936763b4554 | |
| parent | 85e580a5e4133f033da095851e864a6ab33e67e9 (diff) | |
| download | emacs-d2fec5e5e31c282f17ada3a7067df26f1f8662ed.tar.gz emacs-d2fec5e5e31c282f17ada3a7067df26f1f8662ed.zip | |
Document that remapping commands is supported with bind-key
Copyright-paperwork-exempt: yes
| -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 @@ | |||
| 38 | ;; | 38 | ;; |
| 39 | ;; (bind-key "C-c x" 'my-ctrl-c-x-command) | 39 | ;; (bind-key "C-c x" 'my-ctrl-c-x-command) |
| 40 | ;; | 40 | ;; |
| 41 | ;; If the keybinding argument is a vector, it is passed straight to | ||
| 42 | ;; `define-key', so remapping a key with `[remap COMMAND]' works as | ||
| 43 | ;; expected: | ||
| 44 | ;; | ||
| 45 | ;; (bind-key [remap original-ctrl-c-x-command] 'my-ctrl-c-x-command) | ||
| 46 | ;; | ||
| 41 | ;; If you want the keybinding to override all minor modes that may also bind | 47 | ;; If you want the keybinding to override all minor modes that may also bind |
| 42 | ;; the same key, use the `bind-key*' form: | 48 | ;; the same key, use the `bind-key*' form: |
| 43 | ;; | 49 | ;; |