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
    Commented Nov 19, 2015 at 16:27

1 Answer 1


You can change the lazy-highlight face:

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

But this face is used in other cases.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.