In programming files, I use the space mode to highlight the tab and long lines. The default highlighting is too garnishing for me. I just want to highlight them with a gray background and keep any normal color for the font. How can i install this?
The following setting does not work. I would like the code outside the 80 columns to look yellowish, like the characters inside the 80 columns in the snapshot.
;; face for long lines' tails
(set-face-attribute 'whitespace-line nil
:background "#555"
:weight 'bold)
;; face for Tabs
(set-face-attribute 'whitespace-tab nil
:background "#555"
:weight 'bold)

source
share