diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-27 13:32:46 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-27 13:32:46 -0400 |
| commit | 86855025799aa90a43e6de28c56aacd3d212754a (patch) | |
| tree | 2f43be3c19b2ca2d3dc0fddcf38be961047d2565 | |
| parent | 2ad951dcb9f121c2d9c1489500131282be5f397a (diff) | |
| download | dotemacs-86855025799aa90a43e6de28c56aacd3d212754a.tar.gz dotemacs-86855025799aa90a43e6de28c56aacd3d212754a.zip | |
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.
| -rw-r--r-- | modules/system-utils.el | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
