Don't change gc-cons-threshold on reload

This commit is contained in:
Henrik Lissner 2017-05-20 23:25:44 +02:00
parent d535602a78
commit 5b343a32d0
2 changed files with 3 additions and 2 deletions

View file

@ -404,7 +404,8 @@ server, if necessary) by `doom/packages-install', `doom/packages-update' and
(doom-initialize t) (doom-initialize t)
(doom/recompile) (doom/recompile)
(message "Reloaded %d packages" (length doom--package-load-path)) (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 () (defun doom/reload-autoloads ()
"Refreshes the autoloads.el file, which tells Emacs where to find all the "Refreshes the autoloads.el file, which tells Emacs where to find all the

View file

@ -175,7 +175,7 @@ enable multiple minor modes for the same regexp.")
(require 'core-projects) ; making Emacs project-aware (require 'core-projects) ; making Emacs project-aware
(require 'core-keybinds))) ; centralized keybind system + which-key (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 (setq gc-cons-threshold 16777216
gc-cons-percentage 0.1)) gc-cons-percentage 0.1))