I'd like to enable
whitespace-mode from a .
dir-locals.el file such that when I open a file managed by
cc-mode, I will see trailing spaces highlighted with the whitespace face.
I think I'm close. This is what I have in my
.dir-locals.el, but its not quite enough.
((cc-mode . ((whitespace-style . (face trailing)) (whitespace-active-style . (face trailing))))
But if I M-x
whitespace-toggle-options and choose f, then the trailing whitespace is highlighted.