Refactor anzu--reset-status hooks
This commit is contained in:
parent
6b5f0af985
commit
733042cb7f
1 changed files with 2 additions and 4 deletions
|
@ -48,11 +48,9 @@
|
|||
anzu--cached-count anzu--cached-positions anzu--last-command
|
||||
anzu--last-isearch-string anzu--overflow-p))
|
||||
|
||||
(defun +doom-modeline|reset-anzu ()
|
||||
(anzu--reset-status))
|
||||
;; Ensure anzu state is cleared when searches & iedit are done
|
||||
(add-hook! :append '(kill-buffer isearch-mode-end +evil-esc-hook)
|
||||
#'+doom-modeline|reset-anzu)
|
||||
(add-hook! :append '(isearch-mode-end-hook +evil-esc-hook)
|
||||
#'anzu--reset-status)
|
||||
(after! iedit
|
||||
(add-hook 'iedit-mode-end-hook #'+doom-modeline|reset-anzu)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue