mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-30 11:09:55 +00:00
Load hooks for anzu--reset-status immediately.
This commit is contained in:
parent
01db5c1040
commit
752bb05e73
1 changed files with 3 additions and 4 deletions
|
@ -421,10 +421,9 @@ active.")
|
|||
;; anzu--last-isearch-string anzu--overflow-p))
|
||||
|
||||
;; Ensure anzu state is cleared when searches & iedit are done
|
||||
(with-eval-after-load 'anzu
|
||||
(add-hook 'isearch-mode-end-hook #'anzu--reset-status t)
|
||||
(add-hook 'iedit-mode-end-hook #'anzu--reset-status)
|
||||
(advice-add #'evil-force-normal-state :after #'anzu--reset-status))
|
||||
(add-hook 'isearch-mode-end-hook #'anzu--reset-status t)
|
||||
(add-hook 'iedit-mode-end-hook #'anzu--reset-status)
|
||||
(advice-add #'evil-force-normal-state :after #'anzu--reset-status)
|
||||
|
||||
;; Keep `doom-modeline-current-window' up-to-date
|
||||
(defvar doom-modeline-current-window (frame-selected-window))
|
||||
|
|
Loading…
Reference in a new issue