lucky1928
lucky1928

Reputation: 8905

emacs - long line hightlight color too dark

I use below code to highlight characters longer than 78.

(setq whitespace-style '(face empty tabs lines-tail trailing))
(setq whitespace-line-column 78)
(global-whitespace-mode 1)

It works fine but the background color too dark! enter image description here

How can I change the highlight characters background color?

Upvotes: 1

Views: 229

Answers (2)

user6018651
user6018651

Reputation:

just like below:

(setq whitespace-style '(face empty tabs lines-tail trailing))
(setq whitespace-line-column 78)
(global-whitespace-mode 1)

(custom-set-faces
  '(whitespace-line ((t (:background "#eff0f1"))))

Upvotes: 0

choroba
choroba

Reputation: 242123

Just customize the whitespace-line face.

Upvotes: 1

Related Questions