diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-16 07:58:26 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-16 07:58:26 -0500 |
| commit | 56d105f0ec3b7e5e4088d0683ae9cc5797442854 (patch) | |
| tree | 6798c110e2fdde6797e4a8a12c7dacaae689313c /modules/dashboard-config.el | |
| parent | cbc79f9d49de860134e12fc348560c7e43aea8f2 (diff) | |
| download | dotemacs-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/dashboard-config.el')
| -rw-r--r-- | modules/dashboard-config.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/dashboard-config.el b/modules/dashboard-config.el index b92162932..38510e801 100644 --- a/modules/dashboard-config.el +++ b/modules/dashboard-config.el @@ -17,6 +17,7 @@ ;;; Code: +(require 'system-lib) ;; cj/exclude-from-global-font-lock (eval-when-compile (require 'undead-buffers)) (declare-function cj/make-buffer-undead "undead-buffers" (string)) (autoload 'cj/make-buffer-undead "undead-buffers" nil t) @@ -168,7 +169,7 @@ system-defaults) are preserved rather than overwritten." ;; running the banner and headings fall back to the default face. Excluding ;; dashboard-mode lets those text-property faces survive. (Item and navigator ;; colors ride a `dashboard-items-face' overlay, which font-lock leaves alone.) -(setq font-lock-global-modes '(not dashboard-mode)) +(cj/exclude-from-global-font-lock 'dashboard-mode) (use-package dashboard :demand t |
