mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 04:58:53 +08:00
Add explanation for use of write-contents-functions
This commit is contained in:
parent
5fbfb3caad
commit
0013603607
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user