[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use-package

From: Phillip Lord
Subject: Re: use-package
Date: Thu, 05 May 2016 14:38:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux)

Uwe Brauer <> writes:
>    > use-package speeds up startup times by delaying the loading the
>    > packages that you can afford to.. for example, you do not need to
>    > load org-mode until you are in a buffer with org-mode major mode or
>    > you call one of the commands like org-agenda that autoloads
>    > org-mode. So if you load org-mode using use-package and its ":defer
>    > t" or ":commands (...)" or similar load-deferring options, you will
>    > see an improvement in the startup time.
> That sounds a bit like autoloads.

It's similar but different. With autoloads, when you first use a
function in a package, the package loads, Emacs stalls. With defer, it
loads in the idle cycle.

I also use it for global minor-modes like Helm. Normally, it's loaded by
the time you want it.

> So the time you gain at startup you might loose on run time, do I
> understand that correctly? Ok makes sense, there is no such thing as a
> free lunch...

idle time, rather than run time. It's a good compromise.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]