Emacs: Auto-Trim
Throw the following in your ~/.emacs
file to remove any trailing whitespace from the buffer every time you save:
(add-hook 'before-save-hook (lambda () (delete-trailing-whitespace)))
Written by Chris Seymour
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Emacs
Authors
Related Tags
#emacs
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#