Merge pull request #40 from edkolev/master

Don't try to call anzu functions if anzu isn't installed
This commit is contained in:
Vincent Zhang 2018-11-09 21:48:45 +08:00 committed by GitHub
commit fd5c985dc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -379,9 +379,10 @@ active.")
;; anzu--last-isearch-string anzu--overflow-p)) ;; anzu--last-isearch-string anzu--overflow-p))
;; Ensure anzu state is cleared when searches & iedit are done ;; Ensure anzu state is cleared when searches & iedit are done
(add-hook 'isearch-mode-end-hook #'anzu--reset-status t) (with-eval-after-load 'anzu
(add-hook 'iedit-mode-end-hook #'anzu--reset-status) (add-hook 'isearch-mode-end-hook #'anzu--reset-status t)
(advice-add #'evil-force-normal-state :after #'anzu--reset-status) (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 ;; Keep `doom-modeline-current-window' up-to-date
(defvar doom-modeline-current-window (frame-selected-window)) (defvar doom-modeline-current-window (frame-selected-window))