1
0
Fork 0
mirror of https://github.com/correl/doom-modeline.git synced 2025-03-26 17:00:05 -09:00

Fix : 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)
(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