help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: use-package


From: Uwe Brauer
Subject: Re: use-package
Date: Thu, 05 May 2016 09:51:23 +0000
User-agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.50 (gnu/linux)


   > Yes. Assuming that your emacs_keys.el is already in the load-path
   > (i.e. you are able to successfully do (require 'emacs_keys), you
   > can do instead

   >     (use-package emacs_keys)

   >     -  and if so: would it shorten startup?

   > Most likely, not.

   > 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.

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...





reply via email to

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