help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Highlighting a missing final newline?


From: egarrulo
Subject: Highlighting a missing final newline?
Date: Tue, 22 Mar 2016 12:30:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

How would you highlight a missing final newline? I mean: if a buffer lacks a final newline, then you would see a (customizable) character at the end of the buffer; otherwise, you would see nothing.

AFAIK, `font-lock-add-keywords' can't help here because there is no character to highlight. I have looked into `whitespace-mode' for inspiration, but the code is too complex for me.

Thank you.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]