Function: evil-enclose-avy-for-motion

evil-enclose-avy-for-motion is a macro defined in evil-integration.el.

Signature

(evil-enclose-avy-for-motion &rest BODY)

Documentation

Enclose avy to make it suitable for motions.

Based on evil-enclose-ace-jump-for-motion.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-integration.el
(defmacro evil-enclose-avy-for-motion (&rest body)
  "Enclose avy to make it suitable for motions.
Based on `evil-enclose-ace-jump-for-motion'."
  (declare (indent defun)
           (debug t))
  `(let ((avy-all-windows
          (if (and (not (memq evil-state '(visual operator)))
                   (boundp 'avy-all-windows))
              avy-all-windows
            nil)))
     ,@body))