From f7c04b0831c005ffe4678de48d4828a362e565bd Mon Sep 17 00:00:00 2001 From: d6 Date: Wed, 26 Oct 2022 23:09:27 -0400 Subject: [PATCH] toggle trailing whitespace --- init.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index f923944..289a53a 100644 --- a/init.el +++ b/init.el @@ -536,10 +536,16 @@ ;; handy function to toggle tabs (defun toggle-indent-tabs () - "Toggle tabs on/off" + "Toggle tabs on/off." (interactive) (setq indent-tabs-mode (not indent-tabs-mode))) +;; +(defun toggle-trailing-whitespace () + "Toggle trailing whitespace visualization." + (interactive) + (setq show-trailing-whitespace (not show-trailing-whitespace))) + ;; handy function to regenerate tags (defun my/regenerate-tags () "Regenerate tags using ets."