Fix #17: Undefined variable evil-ex-start-word-search.

This commit is contained in:
Vincent Zhang 2018-08-14 00:30:49 +08:00
parent aa25e7b143
commit ec11fef2a5

View file

@ -325,10 +325,11 @@ 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
;; mode-line.
(when (featurep 'anzu)
(eval-and-compile
(add-hook 'anzu-mode-hook
(lambda ()
(setq anzu-cons-mode-line-p nil
anzu-minimum-input-length 1
anzu-search-threshold 250)
anzu-search-threshold 250)))
(defun doom-modeline-fix-anzu-count (positions here)
(cl-loop for (start . end) in positions
@ -348,7 +349,7 @@ If STRICT-P, return nil if no project was found, otherwise return
;; Ensure anzu state is cleared when searches & iedit are done
(add-hook 'isearch-mode-end-hook #'anzu--reset-status t)
;; (add-hook '+evil-esc-hook #'anzu--reset-status t)
(add-hook 'iedit-mode-end-hook #'anzu--reset-status)))
(add-hook 'iedit-mode-end-hook #'anzu--reset-status))
;; Keep `doom-modeline-current-window' up-to-date
(defvar doom-modeline-current-window (frame-selected-window))
@ -845,7 +846,8 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
(defsubst doom-modeline--iedit ()
"Show the number of iedit regions matches + what match you're on."
(when (and (bound-and-true-p iedit-mode) (bound-and-true-p iedit-occurrences-overlays))
(when (and (bound-and-true-p iedit-mode)
(bound-and-true-p iedit-occurrences-overlays))
(propertize
(let ((this-oc (or (let ((inhibit-message t))
(iedit-find-current-occurrence-overlay))