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 | d50da56d90d9fa6f86e70af1984ff3e6825dabbf (patch) | |
| tree | f50163ea7d47ec1b97ab241cd78c601b3c8887dd /modules | |
| parent | d55b12bb8fca8901f8469d8d97d3293bff313ae1 (diff) | |
| download | dotemacs-d50da56d90d9fa6f86e70af1984ff3e6825dabbf.tar.gz dotemacs-d50da56d90d9fa6f86e70af1984ff3e6825dabbf.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')
| -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 |
