diff options
| author | Blake Romero <blake@developercraft.com> | 2025-10-18 22:02:37 +0100 |
|---|---|---|
| committer | Blake Romero <blake@developercraft.com> | 2025-10-18 22:02:37 +0100 |
| commit | 283ae212e946c663ad7efe758ebfeaf731690604 (patch) | |
| tree | 65819220781cedb39dac5fc532d0e45f93ed4d4f /modally.el | |
| parent | f5cd4257f2ef58600f081694a08808d457d3185a (diff) | |
Add inactive face to buffer path for inactive windows
Diffstat (limited to 'modally.el')
| -rw-r--r-- | modally.el | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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)) |
