syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.67k stars 4.89k forks source link

How to disable lazy-load #12653

Closed junfx closed 5 years ago

junfx commented 5 years ago

With lazy-load, or auto-load, the first time I run commands such as SPC f r, SPC f f, SPC b b emacs loads things for 2-3 seconds, for ~10 seconds the first time I open an org file. Emacs bogs, I bog. So how to preload some packages, or disable lazy-load? I've tried (require 'helm) and other things in .spacemacs, it does not work.

OS: windows 10 spacemacs: 0.200.13.x

syl20bnr commented 5 years ago

It is not really possible to disable lazy-loading, we have no option to do that. People prefers fast startup :-)

But... when Emacs 27 will be released you will be able to use the portable dumper and get ultra fast startup with no lazy loading for org, helm etc... Actually you can already test it if you want: https://github.com/syl20bnr/spacemacs/blob/develop/EXPERIMENTAL.org#spacemacs-dumps-using-the-portable-dumper

Note that it requires to use the develop branch which has a lot of new stuff and some changed key-bindings, you can find the change notes here: https://github.com/syl20bnr/spacemacs/blob/develop/CHANGELOG.develop

junfx commented 5 years ago

The reason why loading takes so long is LANDESK. Thanks.