When using Whitespace Mode with the empty
style enabled, the blank lines at the end of a file aren't highlighted if I'm on the very last line. However, I also don't want them to be highlighted if I'm on the line before last, since it visually interferes with appending text to the end of a file. For instance, say I have an unsaved buffer which looks like this, where $
denotes a newline character and |
denotes point:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.|$
Now if I decide to add a new paragraph:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.$
$
|$
Whitespace Mode will now highlight the two blank lines at the end. However, as soon as I start writing text, it becomes obvious that there isn't, in fact, any issue with those blank lines since my point is positioned to rectify them:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.$
$
Pellentesque quis metus eget urna dictum pulvinar.|$
Therefore, how can I prevent Whitespace Mode from highlighting the blank lines in the situation just before I start typing Pellentesque
, when my point is on the second-to-last blank line?