From 77f554c63d382e81bbbc71eff4cb66880bb4f3b5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 17 Jul 2020 23:32:59 -0400 Subject: [PATCH] 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. --- modules/editor/evil/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/editor/evil/init.el b/modules/editor/evil/init.el index 61a831503..1cee4dd95 100644 --- a/modules/editor/evil/init.el +++ b/modules/editor/evil/init.el @@ -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))