Eliminar espacios, tabs y saltos de línea innecesarios antes de guardar.

This commit is contained in:
kj 2021-01-25 12:54:26 -04:00
parent c310bf4c29
commit 49129c85da
1 changed files with 5 additions and 0 deletions

View File

@ -187,3 +187,8 @@
(add-hook 'csharp-mode-hook #'(lambda()
(setq compile-command "dotnet run")
))
;Borrar espacios, tabs y saltos de línea innecesarios al guardar
(add-hook 'before-save-hook 'kj-delete-trailing-whitespace)
(defun kj-delete-trailing-whitespace ()
(delete-trailing-whitespace))