Currently, whitespace.el shows me newline characters by changing the display table to show a $
at the end of lines.
I don't actually find this useful, so I disable it while I enjoy the many other benefits of whitespace-mode
.
When I'm composing emails in message-mode
I want to show the newline characters that have the 'hard
text property, because it affects how the flowed text shows up.
Can I hack this distinction into the display table logic of whitespace-mode
? My backup plan relies on longlines-show-hard-newlines
but I'd prefer to extend whitespace.el if possible.
newline
andnewline-mark
towhitespace-style
when entering message-mode would do it, but upon checking it seemswhitespace-style
is not buffer local.whitespace-style
inmessage-mode
. I personally usewhitespace-newline-mode
for this, but of course there are other ways to do it. I find this toggle uses one face for every newline - it hacks the display table to show a fontified "$\n" whenever the text has a "\n". The question is whether I can modify this display table logic to distinguish on other criteria, like text properties. Does that makes sense?