Enable show-trailing-whitespace globally
The variable is buffer-local and must be set with setq-default instead. Also adds doom|{enable,disable}-show-trailing-whitespace hooks.
This commit is contained in:
parent
29a1120f01
commit
67b6c44939
3 changed files with 25 additions and 4 deletions
|
@ -179,3 +179,13 @@ i.e. enables `ws-butler-mode' in the current buffer."
|
|||
|
||||
i.e. disables `ws-butler-mode' in the current buffer."
|
||||
(ws-butler-mode -1))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom|enable-show-trailing-whitespace ()
|
||||
"Enable `show-trailing-whitespace' in the current buffer."
|
||||
(setq-local show-trailing-whitespace t))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom|disable-show-trailing-whitespace ()
|
||||
"Disable `show-trailing-whitespace' in the current buffer."
|
||||
(setq-local show-trailing-whitespace nil))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue