Function: windmove-default-keybindings

windmove-default-keybindings is an autoloaded, interactive and byte-compiled function defined in windmove.el.gz.

Signature

(windmove-default-keybindings &optional MODIFIERS)

Documentation

Set up keybindings for windmove.

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.

View in manual

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-default-keybindings (&optional modifiers)
  "Set up keybindings for `windmove'.
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'."
  (interactive)
  (unless modifiers (setq modifiers 'shift))
  (when (eq modifiers 'none) (setq modifiers nil))
  (setq modifiers (ensure-list modifiers))
  (windmove-install-defaults nil modifiers
                             '((windmove-left left)
                               (windmove-right right)
                               (windmove-up up)
                               (windmove-down down))))