Intelligently call whitespace-cleanup on save
whitespace-cleanup
This package provides a minor mode that calls whitespace-cleanup before saving the current buffer only if the whitespace in the buffer was initially clean.