Fix: remove anzu default mode-line.

This commit is contained in:
Vincent Zhang 2018-08-14 10:56:57 +08:00
parent c48459b7c8
commit 176307f66c

View file

@ -325,12 +325,6 @@ If STRICT-P, return nil if no project was found, otherwise return
;; anzu and evil-anzu expose current/total state that can be displayed in the ;; anzu and evil-anzu expose current/total state that can be displayed in the
;; mode-line. ;; mode-line.
(when (featurep 'anzu) (when (featurep 'anzu)
(add-hook 'anzu-mode-hook
(lambda ()
(setq anzu-cons-mode-line-p nil
anzu-minimum-input-length 1
anzu-search-threshold 250)))
(defun doom-modeline-fix-anzu-count (positions here) (defun doom-modeline-fix-anzu-count (positions here)
(cl-loop for (start . end) in positions (cl-loop for (start . end) in positions
collect t into before collect t into before
@ -809,6 +803,7 @@ lines are selected, or the NxM dimensions of a block selection."
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