Fix #55: Projectile segment errors on a new clojure project.

This commit is contained in:
Vincent Zhang 2018-12-02 18:53:51 +08:00
parent b3b0fc780d
commit 1497e12b08

View file

@ -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)
(ignore-errors
(when-let ((project (project-current)))
(expand-file-name (car (project-roots project)))))
(expand-file-name (car (project-roots project))))))
default-directory)))))
;; Disable projectile mode-line segment