ui/modeline: fontify buffer-id default value
This commit is contained in:
parent
712b775f36
commit
fdea8ff5ee
1 changed files with 2 additions and 2 deletions
|
@ -431,11 +431,11 @@ Meant for `+modeline-buffer-path-function'."
|
||||||
|
|
||||||
(def-modeline-segment! +modeline-buffer-id
|
(def-modeline-segment! +modeline-buffer-id
|
||||||
:on-hooks (find-file-hook after-save-hook after-revert-hook)
|
:on-hooks (find-file-hook after-save-hook after-revert-hook)
|
||||||
:init "%b"
|
:init (propertize "%b" 'face 'doom-modeline-buffer-file)
|
||||||
:faces t
|
:faces t
|
||||||
(if buffer-file-name
|
(if buffer-file-name
|
||||||
(+modeline-build-path (buffer-file-name (buffer-base-buffer)))
|
(+modeline-build-path (buffer-file-name (buffer-base-buffer)))
|
||||||
"%b"))
|
(propertize "%b" 'face 'doom-modeline-buffer-file)))
|
||||||
|
|
||||||
(def-modeline-segment! +modeline-buffer-directory
|
(def-modeline-segment! +modeline-buffer-directory
|
||||||
(let ((face (if (active) 'doom-modeline-buffer-path)))
|
(let ((face (if (active) 'doom-modeline-buffer-path)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue