# HG changeset patch # User Oleksandr Gavenko # Date 1605529408 -7200 # Node ID 1c19f4e2ac1968c1c363d529344124909cb10161 # Parent d31f7473a4b1d743b14a810ba260005492ab2b73 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. diff -r d31f7473a4b1 -r 1c19f4e2ac19 .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) ...) )