Function: evil-set-custom-state-maps

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

Signature

(evil-set-custom-state-maps VAR PENDING-VAR KEY MAKE NEWLIST)

Documentation

Change the list of special keymaps.

VAR is the variable containing the list of keymaps.
PENDING-VAR is the variable containing the list of the currently pending
            keymaps.
KEY the special symbol to be stored in the keymaps.
MAKE the creation function of the special keymaps.
NEWLIST the list of new special keymaps.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-vars.el
(defun evil-set-custom-state-maps (var pending-var key _make newlist)
  "Change the list of special keymaps.
VAR         is the variable containing the list of keymaps.
PENDING-VAR is the variable containing the list of the currently pending
            keymaps.
KEY         the special symbol to be stored in the keymaps.
MAKE        the creation function of the special keymaps.
NEWLIST     the list of new special keymaps."
  (set-default pending-var newlist)
  (when (default-boundp var)
    (dolist (map (default-value var))
      (when (and (boundp (car map))
                 (keymapp (default-value (car map))))
        (define-key (default-value (car map)) (vector key) nil))))
  (set-default var newlist)
  (evil-update-pending-maps))