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." 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)