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:
parent
877008a00e
commit
c93b70237c
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue