Merge pull request #54 from dkellner/master

Fix calling `projectile-project-root'.
This commit is contained in:
Vincent Zhang 2018-11-30 17:21:41 +08:00 committed by GitHub
commit b3b0fc780d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -374,7 +374,8 @@ If DEFAULT is non-nil, set the default mode-line for all buffers."
(setq doom-modeline-project-root (setq doom-modeline-project-root
(file-local-name (file-local-name
(or (or
(when (featurep 'projectile) (projectile-project-root)) (when (featurep 'projectile)
(ignore-errors (projectile-project-root)))
(when (featurep 'project) (when (featurep 'project)
(when-let ((project (project-current))) (when-let ((project (project-current)))
(expand-file-name (car (project-roots project))))) (expand-file-name (car (project-roots project)))))