From 49129c85da79d73bc8cafcfbcbd3dc2f557b9a88 Mon Sep 17 00:00:00 2001 From: kj Date: Mon, 25 Jan 2021 12:54:26 -0400 Subject: [PATCH] =?UTF-8?q?Eliminar=20espacios,=20tabs=20y=20saltos=20de?= =?UTF-8?q?=20l=C3=ADnea=20innecesarios=20antes=20de=20guardar.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.el b/init.el index 17bc070..c2f6dec 100644 --- a/init.el +++ b/init.el @@ -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))