`delete-trailing-whitespace-mode` was introduced in commit 8a19c249f81. Should there also be a `global-delete-trailing-whitespace-mode`? This would allow (global-delete-trailing-whitespace-mode 1) and turning it off in an individual buffer with (delete-trailing-whitespace-mode -1) Thanks Jake