Cache project root earlier

So users can still change it with setq-hook! or their own hooks.
This commit is contained in:
Henrik Lissner
2020-04-29 03:41:09 -04:00
parent f28a972861
commit ae152a5924

View File

@ -43,7 +43,7 @@ Emacs.")
;; REVIEW Resolve the project root once, when the file/buffer is opened. This
;; speeds up projectile's project root resolution by leaps, but does
;; put you at risk of having a stale project root.
;; put you at risk of having a stale project root.
(setq-hook! '(change-major-mode-after-body-hook
;; In case the user saves the file to a new location
after-save-hook