mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-27 11:09:49 +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)
|
||||
(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
|
||||
|
|
Loading…
Reference in a new issue