mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix #53: Shortening of remote buffers names.
This commit is contained in:
parent
b0750259a3
commit
fac54da782
1 changed files with 7 additions and 6 deletions
|
@ -375,12 +375,13 @@ active.")
|
|||
Return `default-directory' if no project was found."
|
||||
(or doom-modeline-project-root
|
||||
(setq doom-modeline-project-root
|
||||
(file-local-name
|
||||
(or
|
||||
(when (featurep 'projectile) (projectile-project-root))
|
||||
(when (featurep 'project)
|
||||
(when-let ((project (project-current)))
|
||||
(expand-file-name (car (project-roots project)))))
|
||||
(file-local-name default-directory)))))
|
||||
default-directory)))))
|
||||
|
||||
;; Disable projectile mode-line segment
|
||||
(setq projectile-dynamic-mode-line nil)
|
||||
|
|
Loading…
Reference in a new issue