mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -43,6 +43,7 @@
|
|||||||
help
|
help
|
||||||
image
|
image
|
||||||
indent
|
indent
|
||||||
|
kmacro
|
||||||
kotlin-mode
|
kotlin-mode
|
||||||
lispy
|
lispy
|
||||||
outline
|
outline
|
||||||
@ -340,6 +341,9 @@ and complains if a module is loaded too early (during startup)."
|
|||||||
(+evil-collection-init 'replace))
|
(+evil-collection-init 'replace))
|
||||||
(add-transient-hook! 'indent-rigidly
|
(add-transient-hook! 'indent-rigidly
|
||||||
(+evil-collection-init '(indent "indent")))
|
(+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
|
(add-transient-hook! 'minibuffer-setup-hook
|
||||||
(when evil-collection-setup-minibuffer
|
(when evil-collection-setup-minibuffer
|
||||||
(+evil-collection-init 'minibuffer)
|
(+evil-collection-init 'minibuffer)
|
||||||
|
Reference in New Issue
Block a user