summaryrefslogtreecommitdiff
path: root/helm-buffers.el
diff options
context:
space:
mode:
authorRobin Campbell Joy <rcj@robinjoy.net>2017-09-17 15:23:07 +0200
committerRobin Campbell Joy <rcj@robinjoy.net>2017-09-17 15:23:07 +0200
commit421f4edad67a9a943121bae3799f2ef181008e4d (patch)
tree1d96ef1ecbfbdc6bc58adf3f490c3cd940a6023b /helm-buffers.el
parent898e55c96d5f4a18d64002a269a0c67c03cb7246 (diff)
Use separate face for modified buffers
In a buffer overview, modified buffers were shown using the helm-ff-symlink face. This is slightly irritating if this face is customised and the customisation isn't a good fit for modified buffers. Using helm-buffer-modified instead, inheriting from helm-ff-symlink, makes it possible to style modified buffers independently from symlinks. Issue: #755
Diffstat (limited to 'helm-buffers.el')
-rw-r--r--helm-buffers.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/helm-buffers.el b/helm-buffers.el
index c4348cf6..9c7a2211 100644
--- a/helm-buffers.el
+++ b/helm-buffers.el
@@ -123,6 +123,11 @@ this source is accessible and properly loaded."
"Face used for buffer files not already saved on disk."
:group 'helm-buffers-faces)
+(defface helm-buffer-modified
+ '((t :inherit helm-ff-symlink))
+ "Face used for modified buffers."
+ :group 'helm-buffers-faces)
+
(defface helm-buffer-size
'((((background dark)) :foreground "RosyBrown")
(((background light)) :foreground "SlateGray"))
@@ -365,7 +370,7 @@ See `ido-make-buffer-list' for more infos."
((and file-name (buffer-modified-p buf))
(helm-buffer--show-details
name name-prefix file-name size mode dir
- 'helm-ff-symlink 'helm-buffer-process nil details 'mod))
+ 'helm-buffer-modified 'helm-buffer-process nil details 'mod))
;; A buffer file not modified and saved on disk.=>green
(file-name
(helm-buffer--show-details