Function: keymap-global-set
keymap-global-set is a byte-compiled function defined in compat-29.el.
Signature
(keymap-global-set KEY COMMAND)
Documentation
[Compatibility function for keymap-global-set, defined in Emacs 29.1. See
(compat) Emacs 29.1' for more details.]
Give KEY a global binding as COMMAND. COMMAND is the command definition to use; usually it is a symbol naming an interactively-callable function.
KEY is a string that satisfies key-valid-p.
Note that if KEY has a local binding in the current buffer, that local binding will continue to shadow any global binding that you make with this function.
NOTE: The compatibility version is not a command.
Source Code
;; Defined in ~/.emacs.d/elpa/compat-30.1.0.1/compat-29.el
(compat-defun keymap-global-set (key command) ;; <compat-tests:keymap-global-set>
"Give KEY a global binding as COMMAND.
COMMAND is the command definition to use; usually it is
a symbol naming an interactively-callable function.
KEY is a string that satisfies `key-valid-p'.
Note that if KEY has a local binding in the current buffer,
that local binding will continue to shadow any global binding
that you make with this function.
NOTE: The compatibility version is not a command."
(keymap-set (current-global-map) key command))