Prevent evil-collection from loading packages twice

Triggering eval-after-load blocks (and after!/use-package!) twice.
This commit is contained in:
Henrik Lissner 2019-09-15 16:18:31 -04:00
parent 4f7bf8b976
commit fdeb1aa45d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -222,4 +222,5 @@ and complains if a module is loaded too early (during startup)."
(dolist (mode evil-collection-mode-list) (dolist (mode evil-collection-mode-list)
(dolist (req (or (cdr-safe mode) (list mode))) (dolist (req (or (cdr-safe mode) (list mode)))
(with-eval-after-load req (with-eval-after-load req
(+evil-collection-init mode +evil-collection-disabled-list)))) (+evil-collection-init (or (car-safe mode) mode)
+evil-collection-disabled-list))))