Enable tws mode also in text-mode in addition to prog-mode.
This commit is contained in:
parent
4357030100
commit
e13e8d7b54
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue