6

When I search for text in my buffer, the cursor moves to the first occurrence but all occurrences beyond the first are also lit. E.g. "jumped" in the screenshot below:

enter image description here

Unfortunately, this particular color for the "other" occurrences is very similar to a color used in my Java syntax highlighting and so I would like to customize it to make it stand out more (e.g. perhaps adding a background color too). What do I do that?

  • 1
    `M-x customize-face RET lazy-highlight RET`. Change it and save the change, using the `State` button. – Drew Nov 19 '15 at 16:27

1 Answers1

4

You can change the lazy-highlight face:

(custom-set-faces
  `(lazy-highlight ((t (:foreground "white" :background "SteelBlue")))))

But this face is used in other cases.

djangoliv
  • 3,169
  • 16
  • 31