enable deleting trailing whitepace and trailing newlines during file save