From c93b70237cf20a6c0e456dd8686fb393d99614e2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 9 Aug 2024 15:58:09 -0400 Subject: [PATCH] fix(evil): defer evil-collection-kmacro Emacs 30+ loads kmacro.el eagerly at startup, pulling in all of evil-collection, so I defer it until it's needed. --- modules/editor/evil/init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/editor/evil/init.el b/modules/editor/evil/init.el index 59857eb59..3b754c2d0 100644 --- a/modules/editor/evil/init.el +++ b/modules/editor/evil/init.el @@ -43,6 +43,7 @@ help image indent + kmacro kotlin-mode lispy outline @@ -340,6 +341,9 @@ and complains if a module is loaded too early (during startup)." (+evil-collection-init 'replace)) (add-transient-hook! 'indent-rigidly (+evil-collection-init '(indent "indent"))) + (when (>= emacs-major-version 30) + (add-transient-hook! 'kmacro-menu-mode + (+evil-collection-init 'kmacro))) (add-transient-hook! 'minibuffer-setup-hook (when evil-collection-setup-minibuffer (+evil-collection-init 'minibuffer)