Don't try to call anzu functions if anzu isn't installed

This commit is contained in:
Evgeni Kolev 2018-11-09 14:43:27 +02:00 committed by Evgeni Kolev
parent e9d4728b21
commit 865bd6b8f2

View file

@ -379,9 +379,10 @@ 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)
(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))