fix(evil): don't load help.el twice

a2a128d3 changed prefix-help-command to use embark. This commit fixes
prefix-help-command getting reset to describe-prefix-bindings due to
help.el setting it at top-level because it is eventually loaded twice
due to defer-feature!, which removes a symbol from emacs' list of loaded
features.

Ref a2a128d3a5
This commit is contained in:
Henrik Lissner 2021-08-05 21:24:01 -04:00
parent f5570db4c2
commit 6c52e33302

View file

@ -39,6 +39,7 @@
ert
free-keys
helm
help
indent
image
kotlin-mode
@ -280,9 +281,8 @@ and complains if a module is loaded too early (during startup)."
(after! evil
;; Emacs loads these two packages immediately, at startup, which needlessly
;; convolutes load order for evil-collection-help.
(defer-feature! help help-mode)
(defer-feature! help-mode help-mode)
(add-transient-hook! 'help-mode
(+evil-collection-init 'help))
(add-transient-hook! 'Buffer-menu-mode
(+evil-collection-init '(buff-menu "buff-menu")))
(add-transient-hook! 'calc-mode