1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Document that remapping commands is supported with bind-key

Copyright-paperwork-exempt: yes
This commit is contained in:
Andrew Schwartzmeyer 2018-04-30 09:54:12 -07:00
parent 85e580a5e4
commit d2fec5e5e3

View file

@ -38,6 +38,12 @@
;; ;;
;; (bind-key "C-c x" 'my-ctrl-c-x-command) ;; (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 ;; If you want the keybinding to override all minor modes that may also bind
;; the same key, use the `bind-key*' form: ;; the same key, use the `bind-key*' form:
;; ;;