reverting to using local-write-file-hooks to remove whitespace.