Skip to content

Commit

Permalink
Enable tws mode also in text-mode in addition to prog-mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
emacs18 authored and smile13241324 committed Jul 15, 2022
1 parent 4357030 commit e13e8d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/templates/.spacemacs.template
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions layers/+spacemacs/spacemacs-defaults/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e13e8d7

Please sign in to comment.