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: use-package Date: Mon, 02 May 2016 17:07:41 +0000 Message-ID: <874magv15u.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1462208923 20777 80.91.229.3 (2 May 2016 17:08:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 May 2016 17:08:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 02 19:08: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 1axHKj-0001JD-Jk for geh-help-gnu-emacs@m.gmane.org; Mon, 02 May 2016 19:08:33 +0200 Original-Received: from localhost ([::1]:37694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axHKf-0008KS-KC for geh-help-gnu-emacs@m.gmane.org; Mon, 02 May 2016 13:08:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axHKQ-00089U-CN for help-gnu-emacs@gnu.org; Mon, 02 May 2016 13:08:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axHKE-0000Lw-Mp for help-gnu-emacs@gnu.org; Mon, 02 May 2016 13:08:08 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:33096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axHKE-0000K5-Fx for help-gnu-emacs@gnu.org; Mon, 02 May 2016 13:08:02 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1axHK1-0000yR-OC for help-gnu-emacs@gnu.org; Mon, 02 May 2016 19:07:49 +0200 Original-Received: from 131.red-88-1-251.dynamicip.rima-tde.net ([88.1.251.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2016 19:07:49 +0200 Original-Received: from oub by 131.red-88-1-251.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2016 19:07:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 131.red-88-1-251.dynamicip.rima-tde.net Mail-Copies-To: never User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:GhPXhvWb3128EdGJtLS3uxsAJsw= 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:109859 Archived-At: Hello Using GNU emacs 25.1.50, emacs need some 20sec to start up, «thanks» to my complicated init file. Now I have heard that use-package could considerable shorten the startup time. My init file is structured in the following way (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)) (cond (running-xemacs (load-file "~/xemacs/init/xemacs_init.el") (setq custom-file "/home/oub/xemacs/init/custom-init.el"))) (cond ((and (not running-xemacs) (setq inhibit-x-resources t) (package-initialize) (setq custom-file "/home/oub/emacs/init/custom-init.el") (let ((gc-cons-threshold most-positive-fixnum)) (load-file "~/emacs/init/emacs_init.el") (load-file "/home/oub/emacs/init/custom-init.el"))))) Now my real init file, emacs_init.el 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. But I have also private files, with some hacks, one file with my global keybindings etc How do I treat those files? Maybe somebody with experience in use-package could give me an advice? thanks Uwe Brauer