From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: use-package Date: Thu, 05 May 2016 14:38:17 +0100 Message-ID: <87oa8kzkty.fsf@russet.org.uk> References: <874magv15u.fsf@mat.ucm.es> <87d1p38ll6.fsf@mat.ucm.es> <87oa8kg7dw.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462455552 10132 80.91.229.3 (5 May 2016 13:39:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 May 2016 13:39:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 05 15:39:02 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ayJUc-000683-8t for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2016 15:39:02 +0200 Original-Received: from localhost ([::1]:53645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayJUY-0004O2-Gi for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2016 09:38:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayJUG-0004Ai-7X for help-gnu-emacs@gnu.org; Thu, 05 May 2016 09:38:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayJU4-0006f1-Ed for help-gnu-emacs@gnu.org; Thu, 05 May 2016 09:38:34 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:56794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayJU3-0006cp-0H for help-gnu-emacs@gnu.org; Thu, 05 May 2016 09:38:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From; bh=uRV1Gac62BkQJ7AQZVKfqar/NSz/2AXDsxVMA+dYgAo=; b=Hoc4Fb8YqjdgxTXt9lg8SX2rWh fXD5aG07B2UjQmA60VGG2tN6fCzF6AvhkMFjd1+LkamXnORUkwZhnekQG0u7OyFJSouOaCGHi9P6V vSe+eUQvNMnWZQWBj7PqEJUu6sK2PX6DTNYrlGBcEJv9pPn6XgXsvgnpt5vyfWXesnVxdGCkkQso0 pIlf4GekyUBGNmwCTMnjKgk1BSC+0BoZLV9Q21rQoiDAb/gcuOjJjrfQZn40XZ5LztkmhALPN5+gP 9K3jv4FJ83n4H5qYZetvWlLnLrRPlVo2VW7OQMrg5Ry7ibylx3vd7hCxr2QsFuWb95/oL8R997nVl Pue+QT8Q==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:34515 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1ayJTt-0036n3-Qt for help-gnu-emacs@gnu.org; Thu, 05 May 2016 14:38:17 +0100 In-Reply-To: <87oa8kg7dw.fsf@mat.ucm.es> (Uwe Brauer's message of "Thu, 05 May 2016 09:51:23 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 31.216.48.48 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109882 Archived-At: 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. Phil