aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTino Calancha2016-07-08 01:15:54 +0900
committerTino Calancha2016-07-08 01:15:54 +0900
commit9d70e4da7402e5a89db6a1b175b917cd3fb37e36 (patch)
tree8b2206156ec5fa83cd4b6f325e8e2d238fe6bbc5
parent56277b81507aac393419339ac5fea9248811c235 (diff)
downloademacs-9d70e4da7402e5a89db6a1b175b917cd3fb37e36.tar.gz
emacs-9d70e4da7402e5a89db6a1b175b917cd3fb37e36.zip
* lisp/ibuffer.el: Add face for locked buffers
-rw-r--r--lisp/ibuffer.el15
1 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index a8eba8da893..ff1eb8b2dda 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -160,7 +160,8 @@ elisp byte-compiler."
160 (null buffer-file-name)) 160 (null buffer-file-name))
161 italic) 161 italic)
162 (30 (memq major-mode ibuffer-help-buffer-modes) font-lock-comment-face) 162 (30 (memq major-mode ibuffer-help-buffer-modes) font-lock-comment-face)
163 (35 (derived-mode-p 'dired-mode) font-lock-function-name-face)) 163 (35 (derived-mode-p 'dired-mode) font-lock-function-name-face)
164 (40 (and (boundp 'emacs-lock-mode) emacs-lock-mode) ibuffer-locked-buffer))
164 "An alist describing how to fontify buffers. 165 "An alist describing how to fontify buffers.
165Each element should be of the form (PRIORITY FORM FACE), where 166Each element should be of the form (PRIORITY FORM FACE), where
166PRIORITY is an integer, FORM is an arbitrary form to evaluate in the 167PRIORITY is an integer, FORM is an arbitrary form to evaluate in the
@@ -1733,6 +1734,15 @@ If point is on a group name, this function operates on that group."
1733 1734
1734(defvar ibuffer-inline-columns nil) 1735(defvar ibuffer-inline-columns nil)
1735 1736
1737(defface ibuffer-locked-buffer
1738 '((((background dark)) (:foreground "RosyBrown"))
1739 (t (:foreground "brown4")))
1740 "*Face used for locked buffers in Ibuffer."
1741 :version "25.2"
1742 :group 'ibuffer
1743 :group 'font-lock-highlighting-faces)
1744(defvar ibuffer-locked-buffer 'ibuffer-locked-buffer)
1745
1736(define-ibuffer-column mark (:name " " :inline t) 1746(define-ibuffer-column mark (:name " " :inline t)
1737 (string mark)) 1747 (string mark))
1738 1748
@@ -1741,7 +1751,8 @@ If point is on a group name, this function operates on that group."
1741 (string ibuffer-read-only-char) 1751 (string ibuffer-read-only-char)
1742 " ")) 1752 " "))
1743 1753
1744(define-ibuffer-column locked (:name "L" :inline t) 1754(define-ibuffer-column locked
1755 (:name "L" :inline t :props ('font-lock-face 'ibuffer-locked-buffer))
1745 (if (and (boundp 'emacs-lock-mode) emacs-lock-mode) 1756 (if (and (boundp 'emacs-lock-mode) emacs-lock-mode)
1746 (string ibuffer-locked-char) 1757 (string ibuffer-locked-char)
1747 " ")) 1758 " "))