mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Cache project root earlier
So users can still change it with setq-hook! or their own hooks.
This commit is contained in:
@ -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! '(change-major-mode-after-body-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
|
||||||
|
Reference in New Issue
Block a user