Function: evil-set-type
evil-set-type is a byte-compiled function defined in evil-common.el.
Signature
(evil-set-type OBJECT TYPE)
Documentation
Set the type of OBJECT to TYPE.
For example, (evil-set-type 'next-line 'line)
will make line the type of the next-line command.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-set-type (object type)
"Set the type of OBJECT to TYPE.
For example, (evil-set-type \\='next-line \\='line)
will make `line' the type of the `next-line' command."
(cond
((overlayp object)
(overlay-put object :type type))
((evil-range-p object)
(evil-set-range-type object type))
((listp object)
(plist-put object :type type))
((commandp object)
(evil-set-command-property object :type type))
((symbolp object)
(put object 'type type)))
object)