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