From 36e081f912ffd2ba795f07a70998ca985066b413 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 27 Nov 2018 23:09:30 +0800 Subject: [PATCH] Revert "Load hooks for anzu--reset-status immediately." This reverts commit 752bb05e73f8fa8b0446d3fcbf07002bb446f869. --- doom-modeline.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index e48e2cc..e760757 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -421,9 +421,10 @@ active.") ;; anzu--last-isearch-string anzu--overflow-p)) ;; Ensure anzu state is cleared when searches & iedit are done -(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) +(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)) ;; Keep `doom-modeline-current-window' up-to-date (defvar doom-modeline-current-window (frame-selected-window))