adding `delete-trailing-whitespace' to `before-save-hook'