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 10:15:50 +0000 Message-ID: <874mackdyh.fsf@mat.ucm.es> References: <874magv15u.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462443419 12904 80.91.229.3 (5 May 2016 10:16:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 May 2016 10:16:59 +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 12:16:51 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 1ayGKv-0006j3-Cr for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2016 12:16:49 +0200 Original-Received: from localhost ([::1]:52959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayGKr-0006pK-Ho for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2016 06:16:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayGKc-0006bw-Bj for help-gnu-emacs@gnu.org; Thu, 05 May 2016 06:16:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayGKP-0005EP-UP for help-gnu-emacs@gnu.org; Thu, 05 May 2016 06:16:24 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:32850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayGKP-0005CJ-NM for help-gnu-emacs@gnu.org; Thu, 05 May 2016 06:16:17 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ayGKG-0006H8-4N for help-gnu-emacs@gnu.org; Thu, 05 May 2016 12:16:08 +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 12:16:08 +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 12:16:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 34 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:+FVQKYIcxw3ed44pZ3sVB69rn6w= 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:109881 Archived-At: >>> "Stefan" == Stefan Monnier writes: >> (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > (featurep 'xemacs) right, ancient stuff from Lucid times :'( >> contains calls to many official packages such as auctex, orgmode, gnus >> to name a few. These calls I presume I am able to transfer to the >> use-package syntax. > What do you mean by "calls"? Oh sorry I meant requires, variables setting and hooks. > In a normal setup, your config should not need to load either of Gnus, > Org, or AUCTeX, but only set things up so that they are configured (and > that they get loaded when needed, tho that should already be the case > without any local configuration anyway). You mean autoload instead of require, or do you mean require instead of explicate load-file? (I don't think I use load-file at all). My startup time is around 22 sec (vs 2 sec for emacs Q). I just saw that I had a lot of complains that the source files were newer than the elc files, so I recompiled those files, did not help much now I have 19 sec. I think I will try https://www.emacswiki.org/emacs/ProfileDotEmacs See whether that helps.