Function: windmove-display-default-keybindings
windmove-display-default-keybindings is an autoloaded, interactive and
byte-compiled function defined in windmove.el.gz.
Signature
(windmove-display-default-keybindings &optional MODIFIERS)
Documentation
Set up keybindings for directional buffer display.
Keys are bound to commands that display the next buffer in the specified
direction. Keybindings are of the form MODIFIERS-{left,right,up,down},
where MODIFIERS is either a list of modifiers or a single modifier.
If MODIFIERS is none, the keybindings will be directly bound to
the arrow keys.
Default value of MODIFIERS is shift-meta.
Probably introduced at or before Emacs version 27.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/windmove.el.gz
;;;###autoload
(defun windmove-display-default-keybindings (&optional modifiers)
"Set up keybindings for directional buffer display.
Keys are bound to commands that display the next buffer in the specified
direction. Keybindings are of the form MODIFIERS-{left,right,up,down},
where MODIFIERS is either a list of modifiers or a single modifier.
If MODIFIERS is `none', the keybindings will be directly bound to
the arrow keys.
Default value of MODIFIERS is `shift-meta'."
(interactive)
(unless modifiers (setq modifiers '(shift meta)))
(when (eq modifiers 'none) (setq modifiers nil))
(unless (listp modifiers) (setq modifiers (list modifiers)))
(windmove-install-defaults nil modifiers
'((windmove-display-left left)
(windmove-display-right right)
(windmove-display-up up)
(windmove-display-down down)
(windmove-display-same-window ?0)
(windmove-display-new-frame ?f)
(windmove-display-new-tab ?t))))