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.
This commit is contained in:
Henrik Lissner 2024-08-09 15:58:09 -04:00
parent 877008a00e
commit c93b70237c
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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)