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

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

use-package


From: Uwe Brauer
Subject: use-package
Date: Mon, 02 May 2016 17:07:41 +0000
User-agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.50 (gnu/linux)

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 





reply via email to

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