Move gc settings to the end of elpaca-after-ini-hook

This commit is contained in:
David Morgan 2023-07-24 12:57:27 +01:00
parent 46bbcfc841
commit 19e339c825
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 4 additions and 3 deletions

View File

@ -25,9 +25,10 @@
(cdar elpaca--status-counts)
(string-to-number (emacs-init-time))))
(add-hook 'after-init-hook #'(lambda ()
(setq gc-cons-threshold (* 100 1024 1024)
gc-cons-percentage 0.1)))
(add-hook 'elpaca-after-init-hook #'(lambda ()
(setq gc-cons-threshold (* 100 1024 1024)
gc-cons-percentage 0.1))
99)
;; Some straight functions need to be able to reload everything, so require won't do
(defun require! (feature &optional filename noerror)