The project root detection is moved to projectile-ensure-project.

This commit is contained in:
Vincent Zhang 2018-11-11 15:39:48 +08:00
parent 404e10708c
commit 3018171bc9

View file

@ -329,8 +329,9 @@ active.")
`default-directory'."
(if (local-variable-p 'doom-modeline-project-root)
doom-modeline-project-root
(let (projectile-require-project-root)
(setq doom-modeline-project-root (projectile-project-root)))))
(let ((projectile-require-project-root))
(setq doom-modeline-project-root
(projectile-ensure-project (projectile-project-root))))))
;; Disable projectile mode-line segment
(setq projectile-dynamic-mode-line nil)