X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/fddedd20a99a84be82c14bc76c63c56d2fb9b570..413744728dffde2f9b82a3bd6f0018eefa122a32:/packages/swiper/swiper.el diff --git a/packages/swiper/swiper.el b/packages/swiper/swiper.el index 114acb193..d15ed80e4 100644 --- a/packages/swiper/swiper.el +++ b/packages/swiper/swiper.el @@ -44,19 +44,19 @@ (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))) @@ -115,7 +115,8 @@ emms-playlist-mode erc-mode org-agenda-mode dired-mode - jabber-chat-mode))) + jabber-chat-mode + elfeed-search-mode))) (unless (> (buffer-size) 100000) (if (fboundp 'font-lock-ensure) (font-lock-ensure) @@ -270,11 +271,11 @@ BEG and END, when specified, are the point bounds." (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)