Refactor how git-timemachine loads magit-blame
Loading magit-blame immediately after git-timemachine is premature, only one command uses magit-blame (git-timemachine-blame), so we defer it until that command is called (also, it makes more sense to be in the emacs/vc module, than tools/magit).
This commit is contained in:
parent
c87c2bd5a6
commit
d094162d31
2 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,10 @@
|
||||||
|
|
||||||
(after! evil
|
(after! evil
|
||||||
;; Force evil to rehash keybindings for the current state
|
;; Force evil to rehash keybindings for the current state
|
||||||
(add-hook 'git-timemachine-mode-hook #'evil-normalize-keymaps)))
|
(add-hook 'git-timemachine-mode-hook #'evil-normalize-keymaps))
|
||||||
|
|
||||||
|
(when (featurep! :tools magit)
|
||||||
|
(add-transient-hook! #'git-timemachine-blame (require 'magit-blame))))
|
||||||
|
|
||||||
|
|
||||||
;; `git-commit-mode'
|
;; `git-commit-mode'
|
||||||
|
|
|
@ -38,9 +38,6 @@ load everything.")
|
||||||
(define-key magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit))
|
(define-key magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit))
|
||||||
|
|
||||||
|
|
||||||
(def-package! magit-blame :after git-timemachine)
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! magit-todos
|
(def-package! magit-todos
|
||||||
:hook (magit-mode . magit-todos-mode)
|
:hook (magit-mode . magit-todos-mode)
|
||||||
:config
|
:config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue