branch: elpa/sly
commit d771417e8eac724f4c0870e645ccc0ffcfddf334
Author: AndrĂ© A. Gomes <[email protected]>
Commit: AndrĂ© A. Gomes <[email protected]>

    .dir-locals: Add whitespace rules.
---
 .dir-locals.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.dir-locals.el b/.dir-locals.el
index 38b75b19e51..0051822b5ae 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -1,7 +1,9 @@
 ;;; Directory Local Variables            -*- no-byte-compile: t -*-
 ;;; For more information see (info "(emacs) Directory Variables")
 
-(("lib" .
+((nil . ((require-final-newline . t)
+         (eval . (add-hook 'before-save-hook 'delete-trailing-whitespace nil 
t))))
+ ("lib" .
   ((emacs-lisp-mode . ((elisp-flymake-byte-compile-load-path . ("./" 
"../"))))))
  ("contrib" .
   ((emacs-lisp-mode . ((elisp-flymake-byte-compile-load-path . ("./" 
"../"))))))

Reply via email to