mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +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
|
||||
(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)))))
|
||||
(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)))))
|
||||
default-directory)))))
|
||||
|
||||
;; Disable projectile mode-line segment
|
||||
(setq projectile-dynamic-mode-line nil)
|
||||
|
|
Loading…
Reference in a new issue