mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Merge pull request #54 from dkellner/master
Fix calling `projectile-project-root'.
This commit is contained in:
commit
b3b0fc780d
1 changed files with 2 additions and 1 deletions
|
@ -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)))))
|
||||||
|
|
Loading…
Reference in a new issue