Wrap gcmh-mode bootstrap in interactive check

The interactive check is necessary until I've pushed the new CLI.
This commit is contained in:
Henrik Lissner 2020-03-27 19:09:19 -04:00
parent 5b0782f234
commit 217252e361
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -291,6 +291,7 @@ users).")
;; Adopt a sneaky garbage collection strategy of waiting until idle time to
;; collect; staving off the collector while the user is working.
(when doom-interactive-mode
(setq gc-cons-percentage 0.6)
(add-transient-hook! 'pre-command-hook (gcmh-mode +1))
(with-eval-after-load 'gcmh
@ -298,7 +299,7 @@ users).")
gcmh-high-cons-threshold 16777216
gcmh-verbose doom-debug-mode ; 16mb
gc-cons-percentage 0.1)
(add-hook 'focus-out-hook #'gcmh-idle-garbage-collect))
(add-hook 'focus-out-hook #'gcmh-idle-garbage-collect)))
;; HACK `tty-run-terminal-initialization' is *tremendously* slow for some
;; reason. Disabling it completely could have many side-effects, so we