mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-29 14:33:34 -05:00
feature/version-control: fix git-timemachine headerline
On first invokation of git-timemachine the headerline isn't visible until you jump to another revision. This fix ensures it's visible from the start.
This commit is contained in:
@@ -69,9 +69,8 @@
|
||||
;; Sometimes I forget `git-timemachine' is enabled in a buffer, so instead of
|
||||
;; showing revision details in the minibuffer, show them in
|
||||
;; `header-line-format', which has better visibility.
|
||||
(setq git-timemachine-show-minibuffer-details nil)
|
||||
(add-hook 'git-timemachine-mode-hook #'+vcs|init-header-line)
|
||||
(advice-add #'git-timemachine-show-revision :after #'+vcs*update-header-line)
|
||||
(setq git-timemachine-show-minibuffer-details t)
|
||||
(advice-add #'git-timemachine--show-minibuffer-details :override #'+vcs*update-header-line)
|
||||
|
||||
;; Force evil to rehash keybindings for the current state
|
||||
(add-hook 'git-timemachine-mode-hook #'evil-force-normal-state))
|
||||
|
Reference in New Issue
Block a user