set-evil-initial-state!: fix wrong-type-arguments
Caused when set-evil-initial-state! was used with a single mode (which is 99% of the time!). Indirectly fixes #696
This commit is contained in:
parent
16b341e605
commit
ccce20b581
1 changed files with 2 additions and 2 deletions
|
@ -3,10 +3,10 @@
|
|||
|
||||
;;;###autodef
|
||||
(defun set-evil-initial-state! (modes state)
|
||||
"Set the initialize STATE of MODE using `evil-set-initial-state'."
|
||||
"Set the initialize STATE of MODES using `evil-set-initial-state'."
|
||||
(after! evil
|
||||
(if (listp modes)
|
||||
(dolist (mode modes)
|
||||
(dolist (mode (doom-enlist modes))
|
||||
(evil-set-initial-state mode state))
|
||||
(evil-set-initial-state modes state))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue