Add explanation for use of write-contents-functions

This commit is contained in:
Ryan C. Thompson 2012-03-02 15:53:09 -08:00
parent 5fbfb3caad
commit 0013603607

View File

@ -9,6 +9,7 @@
(whitespace-style face trailing lines-tail)
(whitespace-line-column . 80)
(eval ignore-errors
"Write-contents-functions is a buffer-local alternative to before-save-hook"
(add-hook 'write-contents-functions
(lambda ()
(delete-trailing-whitespace (point-min) (point-max))