|
From: | Basil L. Contovounesios |
Subject: | bug#34952: files with/out final newline look the same no matter what |
Date: | Sun, 24 Mar 2019 01:23:20 +0000 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
"Basil L. Contovounesios" <contovob@tcd.ie> writes: > (defun my-hi-lock-no-eof-nl () > "Highlight missing trailing EOF newlines." > (setf (alist-get "^.+\\'" hi-lock-interactive-patterns nil nil #'equal) > '(0 'trailing-whitespace prepend))) Oops, you probably don't want to use setf+alist-get here. Better just: (add-to-list 'hi-lock-interactive-patterns '("^.+\\'" 0 'trailing-whitespace prepend)) -- Basil
[Prev in Thread] | Current Thread | [Next in Thread] |