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:
parent
1b6b122317
commit
55e90f064f
2 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue