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 | 677b82c7b51eec350674d38411f2a096ec2d2379 (patch) | |
| tree | 77a62047595f62e5afd7275ea9d5ac62d532defa /modules/system-utils.el | |
| parent | 9d5d1d9556ccfcc49ccce4c1d9a9d4f02b17e869 (diff) | |
| download | dotemacs-677b82c7b51eec350674d38411f2a096ec2d2379.tar.gz dotemacs-677b82c7b51eec350674d38411f2a096ec2d2379.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.
Diffstat (limited to 'modules/system-utils.el')
| -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 00be8890..b393aa33 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 |
