Function: evil-set-custom-motions

evil-set-custom-motions is a byte-compiled function defined in evil-vars.el.

Signature

(evil-set-custom-motions VAR VALUES)

Documentation

Set the list of motion commands.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-vars.el
(defun evil-set-custom-motions (var values)
  "Set the list of motion commands."
  (with-no-warnings
    (when (default-boundp var)
      (dolist (motion (default-value var))
        (evil-add-command-properties motion :keep-visual nil :repeat nil)))
    (set-default var values)
    (mapc #'evil-declare-motion (default-value var))))