ui/modeline: abbreviate $HOME in buffer id segment
This commit is contained in:
parent
81cccbcc51
commit
4063b8d14a
1 changed files with 2 additions and 1 deletions
|
@ -284,7 +284,8 @@ e.g. project/src/lib/file.c"
|
||||||
'doom-modeline-buffer-project-root)
|
'doom-modeline-buffer-project-root)
|
||||||
(unless (equal "./" relative-dirs)
|
(unless (equal "./" relative-dirs)
|
||||||
(cons relative-dirs 'doom-modeline-buffer-path))))
|
(cons relative-dirs 'doom-modeline-buffer-path))))
|
||||||
(list nil (cons (file-name-directory filename) 'doom-modeline-buffer-path)))
|
(list nil (cons (abbreviate-file-name (file-name-directory filename))
|
||||||
|
'doom-modeline-buffer-path)))
|
||||||
(list (cons (file-name-nondirectory filename)
|
(list (cons (file-name-nondirectory filename)
|
||||||
'doom-modeline-buffer-file)))))
|
'doom-modeline-buffer-file)))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue