Function: evil-set-cursor
evil-set-cursor is a byte-compiled function defined in evil-common.el.
Signature
(evil-set-cursor SPECS)
Documentation
Change the cursor's apperance according to SPECS.
SPECS may be a cursor type as per cursor-type, a color
string as passed to set-cursor-color, a zero-argument
function for changing the cursor, or a list of the above.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
;;; Display
(defun evil-set-cursor (specs)
"Change the cursor's apperance according to SPECS.
SPECS may be a cursor type as per `cursor-type', a color
string as passed to `set-cursor-color', a zero-argument
function for changing the cursor, or a list of the above."
(unless (and (not (functionp specs))
(listp specs)
(null (cdr-safe (last specs))))
(setq specs (list specs)))
(dolist (spec specs)
(cond
((functionp spec)
(ignore-errors (funcall spec)))
((stringp spec)
(evil-set-cursor-color spec))
(t
(setq cursor-type spec)))))