From a49c14ab07d9974367f99707116a66398f1f49de Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 27 Jun 2026 13:32:46 -0400 Subject: fix(ibuffer): exclude ibuffer from global font-lock so its faces stand ibuffer paints its rows with manual nerd-icons and ibuffer faces, and global font-lock was leaking font-lock-keyword-face onto the buffer and mode names. Exclude ibuffer-mode, the same fix as the shr-rendered reader modes. An empirical scan confirmed plain tabulated-list listings like package-menu and Buffer-menu survive font-lock untouched, so this is scoped to ibuffer, whose content trips keyword fontification. --- modules/system-utils.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/system-utils.el b/modules/system-utils.el index 00be88906..b393aa33f 100644 --- a/modules/system-utils.el +++ b/modules/system-utils.el @@ -157,6 +157,12 @@ detached from Emacs." (keymap-set ibuffer-mode-map "d" #'ibuffer-diff-with-file) (keymap-set ibuffer-mode-map "D" #'ibuffer-mark-for-delete)) +;; ibuffer paints its rows with manual `face' properties (nerd-icons + ibuffer +;; faces). Left in `global-font-lock-mode', font-lock leaks keyword fontification +;; onto buffer and mode names, mixing wrong colors in. Exclude it, the same fix +;; as the shr-rendered reader modes. +(cj/exclude-from-global-font-lock 'ibuffer-mode) + ;;; -------------------------- Scratch Buffer Happiness ------------------------- (defvar scratch-emacs-version-and-system -- cgit v1.2.3