Restore +evil-collection-disabled-list

Without this variable, the user can't easily prevent certain
evil-collection modules from loading without some provide voodoo.
This commit is contained in:
Henrik Lissner 2018-06-26 18:05:35 +02:00
parent 705de920d7
commit 5966e9aa9c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -3,6 +3,11 @@
;; I'm a vimmer at heart. Its modal philosophy suits me better, and this module
;; strives to make Emacs a much better vim than vim was.
(defvar +evil-collection-disabled-list ()
"A list of `evil-collection' modules to ignore. See the definition of this
variable for an explanation of the defaults (in comments). See
`evil-collection-mode-list' for a list of available options.")
(def-package! evil
:init
(setq evil-want-C-u-scroll t
@ -323,8 +328,10 @@
(ztree ztree-diff)))
(dolist (req evil-collection-mode-list)
(with-eval-after-load (car (doom-enlist req))
(evil-collection-init (list req))))))
(let ((feature (car (doom-enlist req))))
(with-eval-after-load feature
(unless (memq feature +evil-collection-disabled-list)
(evil-collection-init (list req))))))))
;;