mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-24 03:00:10 +00:00
The project root detection is moved to projectile-ensure-project.
This commit is contained in:
parent
404e10708c
commit
3018171bc9
1 changed files with 3 additions and 2 deletions
|
@ -329,8 +329,9 @@ active.")
|
||||||
`default-directory'."
|
`default-directory'."
|
||||||
(if (local-variable-p 'doom-modeline-project-root)
|
(if (local-variable-p 'doom-modeline-project-root)
|
||||||
doom-modeline-project-root
|
doom-modeline-project-root
|
||||||
(let (projectile-require-project-root)
|
(let ((projectile-require-project-root))
|
||||||
(setq doom-modeline-project-root (projectile-project-root)))))
|
(setq doom-modeline-project-root
|
||||||
|
(projectile-ensure-project (projectile-project-root))))))
|
||||||
|
|
||||||
;; Disable projectile mode-line segment
|
;; Disable projectile mode-line segment
|
||||||
(setq projectile-dynamic-mode-line nil)
|
(setq projectile-dynamic-mode-line nil)
|
||||||
|
|
Loading…
Reference in a new issue