mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(magit): evil-collection-magit-section overrides
These fixes for evil-collection-magit-section weren't being applied since2f7f37d49b
, 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:
@ -258,7 +258,9 @@ Only has an effect in GUI Emacs.")
|
|||||||
:defer t
|
:defer t
|
||||||
:init
|
:init
|
||||||
(defvar evil-collection-magit-section-use-z-for-folds evil-collection-magit-use-z-for-folds)
|
(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
|
;; 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
|
;; been replaced with z1, z2, z3, etc (and 0 with g=), there's no need to
|
||||||
;; keep them around:
|
;; keep them around:
|
||||||
|
Reference in New Issue
Block a user