summaryrefslogtreecommitdiff
path: root/modally.el
diff options
context:
space:
mode:
Diffstat (limited to 'modally.el')
-rw-r--r--modally.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/modally.el b/modally.el
index 734535a..0e79ef4 100644
--- a/modally.el
+++ b/modally.el
@@ -54,6 +54,9 @@
((not (mode-line-window-selected-p)) 'mode-line-inactive)
((buffer-modified-p) 'modally-buffer-modified)
('modally-buffer)))
+ (buffer-path-face (if (mode-line-window-selected-p)
+ 'modally-buffer-path
+ 'mode-line-inactive))
(buffer-name
(if buffer-file-name
(if (string-match "^\\(/home/[^/]+\\)\\(.+\\)"
@@ -67,8 +70,8 @@
;; if buffer has a path
(let ((path (string-join (butlast spath) "/"))
(filename (car (last spath))))
- (format "\s%s/%s"
- (propertize path 'face 'modally-buffer-path)
+ (format " %s/%s"
+ (propertize path 'face buffer-path-face)
(propertize filename 'face buffer-face)))
;; if a buffer
(format "\s%s" (propertize buffer-name 'face buffer-face))