As every Emacs'er will know, I'm currently suffering from my extensive dot-Emacs configuration. All my packages are within the containers of use-package
, and I bytecompiled all of my .el
-files.
Even with that, Emacs starts in 6.4 seconds, and then loads the rest of the packages (around 40 of them) afterwards.
I was thinking about another ways to solve the long startup time, then I noticed something. The default Emacs (without user configuration) uses many .el
libraries, which are included with every Emacs. They're located in \shares\emacs\version number\lisp\
.
Even with many lisp files, it manages to get started in one second. When I was inspecting the files of many packages that are included with the default Emacs, I found nothing extraordinairy that could explain why Emacs manage to start within one second. Could anyone tell me how Emacs manages that, even with thousands .el
-files?
:defer t
in youruse-package
declarations wherever possible?C-h i g (elisp) Building Emacs
if you're interested in learning about that.