(defface swiper-match-face-1
'((t (:inherit isearch-lazy-highlight-face)))
- "Face for `swiper' matches.")
+ "The background face for `swiper' matches.")
(defface swiper-match-face-2
'((t (:inherit isearch)))
- "Face for `swiper' matches.")
+ "Face for `swiper' matches modulo 1.")
(defface swiper-match-face-3
'((t (:inherit match)))
- "Face for `swiper' matches.")
+ "Face for `swiper' matches modulo 2.")
(defface swiper-match-face-4
- '((t (:inherit isearch)))
- "Face for `swiper' matches.")
+ '((t (:inherit isearch-fail)))
+ "Face for `swiper' matches modulo 3.")
(defface swiper-line-face
'((t (:inherit highlight)))
(lambda ()
(with-selected-window swiper--window
(perform-replace from to
- t t t))))
+ t t nil))))
(swiper--cleanup)
(exit-minibuffer))))
gnus-group-mode
emms-playlist-mode erc-mode
org-agenda-mode
- dired-mode)))
+ dired-mode
+ jabber-chat-mode
+ elfeed-search-mode)))
(unless (> (buffer-size) 100000)
(if (fboundp 'font-lock-ensure)
(font-lock-ensure)
"`isearch' with an overview using `ivy'.
When non-nil, INITIAL-INPUT is the initial search pattern."
(interactive)
+ (unless (eq (length (help-function-arglist 'ivy-read)) 4)
+ (warn "You seem to be using the outdated stand-alone \"ivy\" package.
+Please remove it and update the \"swiper\" package."))
(swiper--init)
(let ((candidates (swiper--candidates))
(preselect (format
(match-end i)))
(face
(cond ((zerop ivy--subexps)
- (cl-caddr swiper-faces))
+ (cadr swiper-faces))
((zerop i)
(car swiper-faces))
(t
- (nth (1+ (mod (1- i) (1- (length swiper-faces))))
+ (nth (1+ (mod (+ i 2) (1- (length swiper-faces))))
swiper-faces)))))
(push overlay swiper--overlays)
(overlay-put overlay 'face face)