mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix #55: Projectile segment errors on a new clojure project.
This commit is contained in:
parent
b3b0fc780d
commit
1497e12b08
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
|
(ignore-errors
|
||||||
(when-let ((project (project-current)))
|
(when-let ((project (project-current)))
|
||||||
(expand-file-name (car (project-roots project)))))
|
(expand-file-name (car (project-roots project))))))
|
||||||
default-directory)))))
|
default-directory)))))
|
||||||
|
|
||||||
;; Disable projectile mode-line segment
|
;; Disable projectile mode-line segment
|
||||||
|
|
Loading…
Reference in a new issue