Fix #2103: logic error initializing gcmh-mode

This commit is contained in:
Henrik Lissner 2019-11-22 12:17:40 -05:00
parent 2dc50f49fc
commit 34500c9177
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -265,7 +265,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 and staving off the collector while the user is working. ;; collect and staving off the collector while the user is working.
(unless doom-interactive-mode (when doom-interactive-mode
(add-transient-hook! 'pre-command-hook (gcmh-mode +1)) (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