mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Merge pull request #127 from hlissner/patch-3
Prevent anzu from injecting itself into modeline
This commit is contained in:
commit
266b3cae80
1 changed files with 1 additions and 1 deletions
|
@ -931,6 +931,7 @@ lines are selected, or the NxM dimensions of a block selection."
|
||||||
|
|
||||||
(advice-add #'anzu--where-is-here :override #'doom-modeline-fix-anzu-count)
|
(advice-add #'anzu--where-is-here :override #'doom-modeline-fix-anzu-count)
|
||||||
|
|
||||||
|
(setq anzu-cons-mode-line-p nil) ; manage modeline segment ourselves
|
||||||
;; Ensure anzu state is cleared when searches & iedit are done
|
;; Ensure anzu state is cleared when searches & iedit are done
|
||||||
(with-eval-after-load 'anzu
|
(with-eval-after-load 'anzu
|
||||||
(add-hook 'isearch-mode-end-hook #'anzu--reset-status t)
|
(add-hook 'isearch-mode-end-hook #'anzu--reset-status t)
|
||||||
|
@ -941,7 +942,6 @@ lines are selected, or the NxM dimensions of a block selection."
|
||||||
"Show the match index and total number thereof.
|
"Show the match index and total number thereof.
|
||||||
Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
|
Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
|
||||||
`evil-search'."
|
`evil-search'."
|
||||||
(setq anzu-cons-mode-line-p nil)
|
|
||||||
(when (and (bound-and-true-p anzu--state)
|
(when (and (bound-and-true-p anzu--state)
|
||||||
(not (bound-and-true-p iedit-mode)))
|
(not (bound-and-true-p iedit-mode)))
|
||||||
(propertize
|
(propertize
|
||||||
|
|
Loading…
Reference in a new issue