summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-editing.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/init-editing.el b/lisp/init-editing.el
index c13df37..ca7573b 100644
--- a/lisp/init-editing.el
+++ b/lisp/init-editing.el
@@ -211,7 +211,8 @@ touches."
(defun km/cleanup-buffer ()
(interactive)
(unless km/prevent-cleanup
- (whitespace-cleanup)))
+ (whitespace-cleanup)
+ (delete-trailing-whitespace)))
(define-key km/editing-map "t" 'km/toggle-prevent-cleanup)