mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-28 19:19:21 +00:00
Merge pull request #40 from edkolev/master
Don't try to call anzu functions if anzu isn't installed
This commit is contained in:
commit
fd5c985dc0
1 changed files with 4 additions and 3 deletions
|
@ -379,9 +379,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))
|
||||
|
|
Loading…
Reference in a new issue