toggle trailing whitespace

This commit is contained in:
~d6 2022-10-26 23:09:27 -04:00
parent 79d7e17acd
commit f7c04b0831
1 changed files with 7 additions and 1 deletions

View File

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