Disabled global-whitespace-mode as it makes string quoted in double quote highlighted in fundamental-mode.
https://emacs.stackexchange.com/questions/61770/whitespace-style-face-activats-highlighting-of-quoted-string-in-fundamental-mo
Old good show-trailing-whitespace is used until global-whitespace-mode is fixed.
--- a/.emacs-my Mon Nov 16 00:32:43 2020 +0200
+++ b/.emacs-my Mon Nov 16 14:23:28 2020 +0200
@@ -672,13 +672,17 @@
(setq-default indicate-empty-lines t)
(setq-default indicate-buffer-boundaries 'left)
-;; (setq-default show-trailing-whitespace t)
-
-(setq whitespace-style '(face trailing tabs))
-(setq whitespace-global-modes t)
-(ignore-errors
- (require 'whitespace)
- (global-whitespace-mode 1))
+;; Old trailing whitespace highlighter built-in into Emacs engine, until global-whitespace-mode is fixed.
+(setq-default show-trailing-whitespace t)
+(set-face-attribute 'trailing-whitespace nil :background "magenta")
+
+;; whitespace-style "face" causes double quoted strings to be highlighted by font-lock-string-face.
+;; https://emacs.stackexchange.com/questions/61770/whitespace-style-face-activats-highlighting-of-quoted-string-in-fundamental-mo
+;; (setq whitespace-style '(face trailing tabs))
+;; (setq whitespace-global-modes t)
+;; (ignore-errors
+;; (require 'whitespace)
+;; (global-whitespace-mode -1))
(setq next-line-add-newlines nil)
@@ -2934,7 +2938,6 @@
;; semantic-decoration-include-visit
;; semantic-analyze-proto-impl-toggle
)
-
;; END OF: (when (featurep 'cedet) ...)
)