fix(magit): evil-collection-magit-section overrides

These fixes for evil-collection-magit-section weren't being applied
since 2f7f37d49b, but any combination of `after!` (or
`{with-}eval-after-load`) will convolute load order for users trying to
rebind their own keys on top of ours *and* evil-collection's, and using
`evil-collection-setup-hook` for this is clumsy, so I must resort to
advice.

Amend: 2f7f37d49b
This commit is contained in:
Henrik Lissner
2025-03-25 17:58:11 -04:00
parent da071559e1
commit 1e1fd5c8e4

View File

@ -258,7 +258,9 @@ Only has an effect in GUI Emacs.")
:defer t
:init
(defvar evil-collection-magit-section-use-z-for-folds evil-collection-magit-use-z-for-folds)
(after! magit-section
:config
(defadvice! +magit--override-evil-collection-defaults-a (&rest _)
:after #'evil-collection-magit-section-setup
;; These numbered keys mask the numerical prefix keys. Since they've already
;; been replaced with z1, z2, z3, etc (and 0 with g=), there's no need to
;; keep them around: