Optimize project root detection.

This commit is contained in:
Vincent Zhang 2018-11-13 19:22:14 +08:00
parent 24dd81d9d5
commit 6d7241050b

View file

@ -332,7 +332,7 @@ active.")
"Get the path to the root of your project.
Return `default-directory' if no project was found."
(if (local-variable-p 'doom-modeline-project-root)
(if doom-modeline-project-root
doom-modeline-project-root
(setq doom-modeline-project-root
(or