aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/eat-config.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/eat-config.el b/modules/eat-config.el
index 74012b9b6..ee83adf10 100644
--- a/modules/eat-config.el
+++ b/modules/eat-config.el
@@ -21,6 +21,7 @@
;;; Code:
(require 'keybindings)
+(require 'system-lib)
(require 'cj-window-geometry-lib)
(require 'cj-window-toggle-lib)
@@ -31,6 +32,14 @@
(defvar eshell-buffer-name)
(defvar cj/custom-keymap)
+;; EAT paints its palette with manual `face' text properties (the ANSI colors).
+;; Left in `global-font-lock-mode', the terminal buffer also gets syntactic
+;; fontification -- a "..." in program output becomes `font-lock-string-face',
+;; overriding the foreground EAT painted (e.g. green-on-green inside a diff) --
+;; so exclude eat-mode, the same reason dashboard and mu4e are excluded. A
+;; mode-hook can't do this: `global-font-lock-mode' runs after the mode hook.
+(cj/exclude-from-global-font-lock 'eat-mode)
+
(defun cj/turn-off-chrome-for-term ()
"Turn off line numbers and hl-line in a terminal buffer."
(hl-line-mode -1)