>>>>> "Peter" == Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> writes:
>> + (lambda () (add-to-list 'write-file-functions 'delete-trailing-whitespace)))))
Peter> dir-locals doesn't work this way. It's not a general lisp file.
Right. The correct approach is
+ (eval add-hook 'before-save-hook 'delete-trailing-whitespace nil t)))
(see the value of safe-local-eval-forms for why)
--
Andrew (irc:RhodiumToad)