Variable: ibuffer-fontification-alist
ibuffer-fontification-alist is a customizable variable defined in
ibuffer.el.gz.
Value
((10 buffer-read-only font-lock-constant-face)
(15
(and buffer-file-name
(string-match ibuffer-compressed-file-name-regexp buffer-file-name))
font-lock-doc-face)
(20
(string-match "^\\*"
(buffer-name))
font-lock-keyword-face)
(25
(and
(string-match "^ "
(buffer-name))
(null buffer-file-name))
italic)
(30
(memq major-mode ibuffer-help-buffer-modes)
font-lock-comment-face)
(35
(derived-mode-p 'dired-mode)
font-lock-function-name-face)
(40
(and
(boundp 'emacs-lock-mode)
emacs-lock-mode)
ibuffer-locked-buffer))
Documentation
An alist describing how to fontify buffers.
Each element should be of the form (PRIORITY FORM FACE), where PRIORITY is an integer, FORM is an arbitrary form to evaluate in the buffer, and FACE is the face to use for fontification. If the FORM evaluates to non-nil, then FACE will be put on the buffer name. The element with the highest PRIORITY takes precedence.
If you change this variable, you must kill the Ibuffer buffer and recreate it for the change to take effect.
Source Code
;; Defined in /usr/src/emacs/lisp/ibuffer.el.gz
(defcustom ibuffer-fontification-alist
'((10 buffer-read-only font-lock-constant-face)
(15 (and buffer-file-name
(string-match ibuffer-compressed-file-name-regexp
buffer-file-name))
font-lock-doc-face)
(20 (string-match "^\\*" (buffer-name)) font-lock-keyword-face)
(25 (and (string-match "^ " (buffer-name))
(null buffer-file-name))
italic)
(30 (memq major-mode ibuffer-help-buffer-modes) font-lock-comment-face)
(35 (derived-mode-p 'dired-mode) font-lock-function-name-face)
(40 (and (boundp 'emacs-lock-mode) emacs-lock-mode) ibuffer-locked-buffer))
"An alist describing how to fontify buffers.
Each element should be of the form (PRIORITY FORM FACE), where
PRIORITY is an integer, FORM is an arbitrary form to evaluate in the
buffer, and FACE is the face to use for fontification. If the FORM
evaluates to non-nil, then FACE will be put on the buffer name. The
element with the highest PRIORITY takes precedence.
If you change this variable, you must kill the Ibuffer buffer and
recreate it for the change to take effect."
:type '(repeat
(list (integer :tag "Priority")
(sexp :tag "Test Form")
face)))