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."