Cache project root earlier
So users can still change it with setq-hook! or their own hooks.
This commit is contained in:
parent
f28a972861
commit
ae152a5924
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue