Fix #53: Shortening of remote buffers names.

This commit is contained in:
Vincent Zhang 2018-11-28 15:24:13 +08:00
parent b0750259a3
commit fac54da782

View file

@ -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)