Disabled global-whitespace-mode as it makes string quoted in double quote highlighted in fundamental-mode.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 16 Nov 2020 14:23:28 +0200
changeset 1634 1c19f4e2ac19
parent 1633 d31f7473a4b1
child 1635 d231b87af643
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.
.emacs-my
--- 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) ...)
   )