From 1497e12b08f47ea3906b47fccaa2729cbcdd80e8 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 2 Dec 2018 18:53:51 +0800 Subject: [PATCH] Fix #55: Projectile segment errors on a new clojure project. --- doom-modeline.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 2404be5..796ed85 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -377,8 +377,9 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." (when (featurep 'projectile) (ignore-errors (projectile-project-root))) (when (featurep 'project) - (when-let ((project (project-current))) - (expand-file-name (car (project-roots project))))) + (ignore-errors + (when-let ((project (project-current))) + (expand-file-name (car (project-roots project)))))) default-directory))))) ;; Disable projectile mode-line segment