aboutsummaryrefslogtreecommitdiff
path: root/modules/mail-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-16 07:58:26 -0500
committerCraig Jennings <c@cjennings.net>2026-06-16 07:58:26 -0500
commit56d105f0ec3b7e5e4088d0683ae9cc5797442854 (patch)
tree6798c110e2fdde6797e4a8a12c7dacaae689313c /modules/mail-config.el
parentcbc79f9d49de860134e12fc348560c7e43aea8f2 (diff)
downloaddotemacs-56d105f0ec3b7e5e4088d0683ae9cc5797442854.tar.gz
dotemacs-56d105f0ec3b7e5e4088d0683ae9cc5797442854.zip
fix(mail): theme mu4e buffers via a shared font-lock exclusion
mu4e paints its header lines, main menu, and view headers with manual `face' text properties. Global font-lock stripped them, so the buffers rendered unthemed, the same failure the dashboard hit. I extracted the dashboard's one-off exclusion into a shared, additive cj/exclude-from-global-font-lock helper in system-lib and repointed the dashboard to it. Then I excluded mu4e-headers-mode, mu4e-main-mode, and mu4e-view-mode. The view body renders through gnus's own washing rather than font-lock, so excluding it is safe.
Diffstat (limited to 'modules/mail-config.el')
-rw-r--r--modules/mail-config.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mail-config.el b/modules/mail-config.el
index dfc0c4e0c..1ec41f213 100644
--- a/modules/mail-config.el
+++ b/modules/mail-config.el
@@ -161,6 +161,12 @@ Prompts user for the action when executing."
(display-buffer-reuse-window display-buffer-same-window)
(inhibit-same-window . nil)))
+;; Keep global font-lock out of the mu4e buffers. mu4e paints header lines, the
+;; main menu, and view headers with manual `face' text properties; global
+;; font-lock strips them (the same failure the dashboard hit), leaving the
+;; buffers unthemed. Excluding these modes keeps mu4e's faces.
+(cj/exclude-from-global-font-lock 'mu4e-headers-mode 'mu4e-main-mode 'mu4e-view-mode)
+
(use-package mu4e
:ensure nil ;; mu4e gets installed by installing 'mu' via the system package manager
:load-path "/usr/share/emacs/site-lisp/mu4e/"