Don't change gc-cons-threshold on reload
This commit is contained in:
parent
d535602a78
commit
5b343a32d0
2 changed files with 3 additions and 2 deletions
|
@ -404,7 +404,8 @@ server, if necessary) by `doom/packages-install', `doom/packages-update' and
|
|||
(doom-initialize t)
|
||||
(doom/recompile)
|
||||
(message "Reloaded %d packages" (length doom--package-load-path))
|
||||
(run-with-timer 1 nil #'redraw-frame))))
|
||||
(run-with-timer 1 nil #'redraw-frame)
|
||||
(run-hooks 'doom-reload-hook))))
|
||||
|
||||
(defun doom/reload-autoloads ()
|
||||
"Refreshes the autoloads.el file, which tells Emacs where to find all the
|
||||
|
|
|
@ -175,7 +175,7 @@ enable multiple minor modes for the same regexp.")
|
|||
(require 'core-projects) ; making Emacs project-aware
|
||||
(require 'core-keybinds))) ; centralized keybind system + which-key
|
||||
|
||||
(add-hook! 'after-init-hook
|
||||
(add-hook! '(after-init-hook doom-reload-hook)
|
||||
(setq gc-cons-threshold 16777216
|
||||
gc-cons-percentage 0.1))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue