Enable tws mode also in text-mode in addition to prog-mode.

This commit is contained in:
Richard Kim 2022-07-04 13:07:40 -07:00 committed by Maxi Wolff
parent 4357030100
commit e13e8d7b54
2 changed files with 5 additions and 2 deletions

View File

@ -486,8 +486,10 @@ It should only modify the values of Spacemacs settings."
;; (default nil - same as frame-title-format)
dotspacemacs-icon-title-format nil
;; Show trailing whitespace (default t)
dotspacemacs-show-trailing-whitespace t
;; Color highlight trailing whitespace in all prog-mode and text-mode derived
;; modes such as c++-mode, python-mode, emacs-lisp, html-mode, rst-mode etc.
;; (default t)
dotspacemacs-show-trailing-whitespace t
;; Delete whitespace while saving buffer. Possible values are `all'
;; to aggressively delete empty line and long sequences of whitespace,

View File

@ -511,6 +511,7 @@
'trailing-whitespace nil
:background (face-attribute 'font-lock-comment-face :foreground)))
(add-hook 'prog-mode-hook 'spacemacs//trailing-whitespace)
(add-hook 'text-mode-hook 'spacemacs//trailing-whitespace)
(spacemacs|add-toggle whitespace
:mode whitespace-mode