From fac54da782ebb4403cbda6b170ffe818b84400ba Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 28 Nov 2018 15:24:13 +0800 Subject: [PATCH] Fix #53: Shortening of remote buffers names. --- doom-modeline.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index d69acb8..5ac9e14 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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)