On Thu, 02 Aug 2007, Thomas Schilling <nominolo at googlemail.com> wrote: > (defun delete-trailing-space () FYI: There is a standard function delete-trailing-whitespace which you could use. > (add-hook 'write-file-hooks 'delete-trailing-space) And write-contents-hooks may be more appropriate. -- /NAD