Automatically remove trailing whitespace and ensure a newline at EOF upon saving.