(with-eval-after-load 'whitespace
(setq whitespace-style '(face trailing tabs spaces lines newline empty
space-mark tab-mark newline-mark))
(set-face-attribute 'whitespace-space nil
:background nil :foreground "#00FF00")
(set-face-attribute 'whitespace-newline nil
:background nil :foreground "#000000"))