Function: evil-define-local-var
evil-define-local-var is a macro defined in evil-vars.el.
Signature
(evil-define-local-var SYMBOL &optional INITVALUE DOCSTRING)
Documentation
Define SYMBOL as permanent buffer local variable, and return SYMBOL.
The parameters are the same as for defvar, but the variable
SYMBOL is made permanent buffer local.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-vars.el
;;; Variables
(defmacro evil-define-local-var (symbol &optional initvalue docstring)
"Define SYMBOL as permanent buffer local variable, and return SYMBOL.
The parameters are the same as for `defvar', but the variable
SYMBOL is made permanent buffer local."
(declare (indent defun)
(doc-string 3)
(debug (symbolp &optional form stringp)))
`(progn
(defvar ,symbol ,initvalue ,docstring)
(make-variable-buffer-local ',symbol)
(put ',symbol 'permanent-local t)))