Prevent evil-collection loading too early

A recent update causes evil-collection-process-menu to load immediately
at startup (because `simple` is loaded immediately), so we defer it
until process-menu-mode is called.

Loading process-menu so early pulls in evil far too early, causing other
issues, like undoing all of evil's prior-to-loading keybindings.
This commit is contained in:
Henrik Lissner 2020-07-17 23:32:59 -04:00
parent 6b4af6d544
commit 77f554c63d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -174,7 +174,6 @@ variable for an explanation of the defaults (in comments). See
(pdf pdf-tools)
popup
proced
(process-menu simple)
prodigy
profiler
python
@ -264,6 +263,8 @@ and complains if a module is loaded too early (during startup)."
(when evil-collection-setup-minibuffer
(+evil-collection-init 'minibuffer)
(evil-collection-minibuffer-insert)))
(add-transient-hook! 'process-menu-mode
(+evil-collection-init '(process-menu simple)))
(add-transient-hook! 'xwidget-webkit-mode
(+evil-collection-init 'xwidget))