Fix gcmh-mode not being activated at startup

This commit is contained in:
Henrik Lissner 2020-03-27 05:20:02 -04:00
parent f4ff7fda38
commit 97a3950ec8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -292,6 +292,7 @@ users).")
;; Adopt a sneaky garbage collection strategy of waiting until idle time to ;; Adopt a sneaky garbage collection strategy of waiting until idle time to
;; collect; staving off the collector while the user is working. ;; collect; staving off the collector while the user is working.
(setq gc-cons-percentage 0.6) (setq gc-cons-percentage 0.6)
(add-transient-hook! 'pre-command-hook (gcmh-mode +1))
(with-eval-after-load 'gcmh (with-eval-after-load 'gcmh
(setq gcmh-idle-delay 10 (setq gcmh-idle-delay 10
gcmh-high-cons-threshold 16777216 gcmh-high-cons-threshold 16777216