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
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -43,7 +43,7 @@ Emacs.")
;; REVIEW Resolve the project root once, when the file/buffer is opened. This ;; REVIEW Resolve the project root once, when the file/buffer is opened. This
;; speeds up projectile's project root resolution by leaps, but does ;; 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! '(after-change-major-mode-hook (setq-hook! '(change-major-mode-after-body-hook
;; In case the user saves the file to a new location ;; In case the user saves the file to a new location
after-save-hook after-save-hook
;; ...or makes external changes then returns to Emacs ;; ...or makes external changes then returns to Emacs