mirror of
https://github.com/larstvei/dot-emacs.git
synced 2025-07-01 16:50:12 +00:00
Improve startup time
This commit is contained in:
parent
59fd42d8d3
commit
94abdf47df
15
init.org
15
init.org
@ -184,10 +184,17 @@
|
||||
number, and restore the default value after initialization.
|
||||
|
||||
#+begin_src emacs-lisp :tangle early-init.el
|
||||
(setq gc-cons-threshold most-positive-fixnum)
|
||||
(add-hook 'after-init-hook
|
||||
(lambda ()
|
||||
(setq gc-cons-threshold (* 1024 1024 20))))
|
||||
|
||||
(let ((file-name-handler-alist-old file-name-handler-alist))
|
||||
(add-hook 'emacs-startup-hook
|
||||
(lambda ()
|
||||
(setq gc-cons-threshold (* 1024 1024 20))
|
||||
(setq file-name-handler-alist file-name-handler-alist-old)))
|
||||
(setq gc-cons-threshold most-positive-fixnum)
|
||||
(setq file-name-handler-alist nil))
|
||||
|
||||
(setq inhibit-default-init t)
|
||||
|
||||
#+end_src
|
||||
|
||||
* Packages
|
||||
|
Loading…
Reference in New Issue
Block a user