Add before-save-hook to delete trailing whitespace