From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.help Subject: Re: use-package Date: Thu, 05 May 2016 09:51:23 +0000 Message-ID: <87oa8kg7dw.fsf@mat.ucm.es> References: <874magv15u.fsf@mat.ucm.es> <87d1p38ll6.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462441962 23387 80.91.229.3 (5 May 2016 09:52:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 May 2016 09:52:42 +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 11:52:34 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 1ayFxQ-0008Pw-PW for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2016 11:52:32 +0200 Original-Received: from localhost ([::1]:52897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayFxN-0000w3-48 for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2016 05:52:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayFws-0000YM-31 for help-gnu-emacs@gnu.org; Thu, 05 May 2016 05:52:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayFwg-0006mq-Fy for help-gnu-emacs@gnu.org; Thu, 05 May 2016 05:51:52 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:59822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayFwg-0006hV-9A for help-gnu-emacs@gnu.org; Thu, 05 May 2016 05:51:46 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ayFwS-0007s3-6w for help-gnu-emacs@gnu.org; Thu, 05 May 2016 11:51:32 +0200 Original-Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2016 11:51:32 +0200 Original-Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2016 11:51:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gilgamesch.quim.ucm.es Mail-Copies-To: never User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:XEVY0o/maQsv4VFvArS/cVvQwcI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:109880 Archived-At: > 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...