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."
|
Return `default-directory' if no project was found."
|
||||||
(or doom-modeline-project-root
|
(or doom-modeline-project-root
|
||||||
(setq doom-modeline-project-root
|
(setq doom-modeline-project-root
|
||||||
(or
|
(file-local-name
|
||||||
(when (featurep 'projectile) (projectile-project-root))
|
(or
|
||||||
(when (featurep 'project)
|
(when (featurep 'projectile) (projectile-project-root))
|
||||||
(when-let ((project (project-current)))
|
(when (featurep 'project)
|
||||||
(expand-file-name (car (project-roots project)))))
|
(when-let ((project (project-current)))
|
||||||
(file-local-name default-directory)))))
|
(expand-file-name (car (project-roots project)))))
|
||||||
|
default-directory)))))
|
||||||
|
|
||||||
;; Disable projectile mode-line segment
|
;; Disable projectile mode-line segment
|
||||||
(setq projectile-dynamic-mode-line nil)
|
(setq projectile-dynamic-mode-line nil)
|
||||||
|
|
Loading…
Reference in a new issue