Wrap gcmh-mode bootstrap in interactive check
The interactive check is necessary until I've pushed the new CLI.
This commit is contained in:
parent
5b0782f234
commit
217252e361
1 changed files with 9 additions and 8 deletions
17
core/core.el
17
core/core.el
|
@ -291,14 +291,15 @@ 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)
|
(when doom-interactive-mode
|
||||||
(add-transient-hook! 'pre-command-hook (gcmh-mode +1))
|
(setq gc-cons-percentage 0.6)
|
||||||
(with-eval-after-load 'gcmh
|
(add-transient-hook! 'pre-command-hook (gcmh-mode +1))
|
||||||
(setq gcmh-idle-delay 10
|
(with-eval-after-load 'gcmh
|
||||||
gcmh-high-cons-threshold 16777216
|
(setq gcmh-idle-delay 10
|
||||||
gcmh-verbose doom-debug-mode ; 16mb
|
gcmh-high-cons-threshold 16777216
|
||||||
gc-cons-percentage 0.1)
|
gcmh-verbose doom-debug-mode ; 16mb
|
||||||
(add-hook 'focus-out-hook #'gcmh-idle-garbage-collect))
|
gc-cons-percentage 0.1)
|
||||||
|
(add-hook 'focus-out-hook #'gcmh-idle-garbage-collect)))
|
||||||
|
|
||||||
;; HACK `tty-run-terminal-initialization' is *tremendously* slow for some
|
;; HACK `tty-run-terminal-initialization' is *tremendously* slow for some
|
||||||
;; reason. Disabling it completely could have many side-effects, so we
|
;; reason. Disabling it completely could have many side-effects, so we
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue