Skip to content

Commit

Permalink
Add skip major mode list for all-windows highlighting in ex-search
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoppinBlockParty committed Oct 8, 2018
1 parent 6811cdc commit c82ec11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion evil-search.el
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,18 @@ The following properties are supported:
"Set the list of active overlays of the highlight HL to OVERLAYS."
(aset hl 8 overlays))

(defcustom evil-ex-hl-skip-major-mode-list '()
"List."
:type '(repeat :type function)
:group 'evil)

(defun evil-ex-hl-buffers()
"Return buffers to highlight in."
(let ((bufs (list)) buf)
(dolist (win (window-list nil -1 nil))
(setq buf (window-buffer win))
(unless (memq buf bufs)
(unless (or (memq buf bufs)
(memq (with-current-buffer buf major-mode) evil-ex-hl-skip-major-mode-list))
(setq bufs (append bufs (list buf)))))
bufs))

Expand Down

0 comments on commit c82ec11

Please sign in to comment.