From ae152a5924e8f795d6ac178e54ef72792dc63c29 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 29 Apr 2020 03:41:09 -0400 Subject: [PATCH] Cache project root earlier So users can still change it with setq-hook! or their own hooks. --- core/core-projects.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-projects.el b/core/core-projects.el index ebb8d803e..1d0213667 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -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. - (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 after-save-hook ;; ...or makes external changes then returns to Emacs