News for hackers. Stuff that matters.
Re:Ask HN: Resources to grok Emacs and use it well? by dizzystar on Thursday April 16, 2020 @05:09AM (#22887512)
for trailing whitespace:

(add-hook 'before-save-hook 'delete-trailing-whitespace)

This deletes all whitespace when you save a buffer.

There are no comments on this comment yet.