doom-modeline: minor refactor
This commit is contained in:
parent
be0e23686b
commit
f6f335ee14
1 changed files with 3 additions and 3 deletions
|
@ -255,9 +255,9 @@ If TRUNCATE-TAIL is t also truncate the parent directory of the file."
|
||||||
(basename (cdr dirs))
|
(basename (cdr dirs))
|
||||||
(dir-faces (or modified-faces (if active 'doom-modeline-project-root-dir)))
|
(dir-faces (or modified-faces (if active 'doom-modeline-project-root-dir)))
|
||||||
(file-faces (or modified-faces (if active 'doom-modeline-buffer-file))))
|
(file-faces (or modified-faces (if active 'doom-modeline-buffer-file))))
|
||||||
(concat (propertize dirname
|
(concat (propertize (concat dirname
|
||||||
'face (if dir-faces `(:inherit ,dir-faces)))
|
(if truncate-tail (substring basename 0 1) basename)
|
||||||
(propertize (concat (if truncate-tail (substring basename 0 1) basename) "/")
|
"/")
|
||||||
'face (if dir-faces `(:inherit ,dir-faces)))
|
'face (if dir-faces `(:inherit ,dir-faces)))
|
||||||
(propertize (file-name-nondirectory buffer-file-name)
|
(propertize (file-name-nondirectory buffer-file-name)
|
||||||
'face (if file-faces `(:inherit ,file-faces)))))))))
|
'face (if file-faces `(:inherit ,file-faces)))))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue