I want to see all spaces at the beginning of a line as dots. Also tabs and line breaks. So I've set my
init.el file as the following:
(setq-default indent-tabs-mode nil) (setq whitespace-style '(space-mark newline-mark tab-mark)) (whitespace-mode t) (add-hook 'before-save-hook 'whitespace-cleanup) (add-hook 'prog-mode-hook (lambda () (whitespace-mode t))) (add-hook 'text-mode-hook (lambda () (whitespace-mode t))) (setq whitespace-display-mappings '((newline-mark 10 [172 10]) (space-mark 32  )))
And that's the result:
You can see the desired effect for the line breaks and the dots here, but the dots are everywhere (Eg. between the words
Lottery). I want only the leading spaces, actually to mark my indentation. How can I do that?
Also, how can I format the colors? I want to select a darker dot and line break. I know it's using a display table so faces won't work, right?