Load gcmh-mode a little sooner

Ensures it is loaded in time when files are loaded directly from the
terminal.
This commit is contained in:
Henrik Lissner 2020-12-11 01:41:38 -05:00
parent 1b6b122317
commit 55e90f064f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 1 additions and 3 deletions

View file

@ -612,7 +612,7 @@ to least)."
(eval-after-load 'straight '(doom-initialize-packages))
;; Bootstrap our GC manager
(add-hook 'doom-first-input-hook #'gcmh-mode)
(add-hook 'doom-first-buffer-hook #'gcmh-mode)
;; Bootstrap the interactive session
(add-hook 'after-change-major-mode-hook #'doom-run-local-var-hooks-h)

View file

@ -41,8 +41,6 @@ killing and opening many LSP/eglot-powered buffers.")
;; GC strategy, so we modify its variables rather than
;; `gc-cons-threshold' directly.
(setq-default gcmh-high-cons-threshold (* 2 +lsp--default-gcmh-high-cons-threshold))
(unless (bound-and-true-p gcmh-mode)
(gcmh-mode +1))
(gcmh-set-high-threshold)
(setq +lsp--optimization-init-p t))))