diff --git a/doom-modeline.el b/doom-modeline.el index e760757..e48e2cc 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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))