From: Andrew Schwartzmeyer Date: Mon, 30 Apr 2018 16:54:12 +0000 (-0700) Subject: Document that remapping commands is supported with bind-key X-Git-Tag: emacs-29.0.90~1306^2~15^2~71^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d2fec5e5e31c282f17ada3a7067df26f1f8662ed;p=emacs.git Document that remapping commands is supported with bind-key Copyright-paperwork-exempt: yes --- 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: ;;