Eliminar espacios, tabs y saltos de línea innecesarios antes de guardar.
This commit is contained in:
parent
c310bf4c29
commit
49129c85da
5
init.el
5
init.el
@ -187,3 +187,8 @@
|
|||||||
(add-hook 'csharp-mode-hook #'(lambda()
|
(add-hook 'csharp-mode-hook #'(lambda()
|
||||||
(setq compile-command "dotnet run")
|
(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))
|
||||||
|
Loading…
Reference in New Issue
Block a user