Make auto-compile use-package work when not present

This commit is contained in:
Ivan Malison 2016-07-09 01:11:13 -07:00
parent 4d26e9d770
commit 0aaedb28bb
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -19,12 +19,13 @@ This makes it so that the file that is produced from tangling this file uses lex
** Setup auto-compile ** Setup auto-compile
This is here because it needs to be activated as early as possible This is here because it needs to be activated as early as possible
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(when (boundp 'use-package)
(use-package auto-compile (use-package auto-compile
:ensure t :ensure t
:config :config
(progn (progn
(auto-compile-on-load-mode) (auto-compile-on-load-mode)
(auto-compile-on-save-mode))) (auto-compile-on-save-mode))))
#+END_SRC #+END_SRC
** Prefer Newer Versions ** Prefer Newer Versions
To reduce the risk of loading outdated byte code files, we set load-prefer-newer and enable auto-compile-on-load-mode as early as possible. To reduce the risk of loading outdated byte code files, we set load-prefer-newer and enable auto-compile-on-load-mode as early as possible.
@ -46,7 +47,7 @@ custom-before.el is loaded before the rest of init.el, while custom-after.el is
This appears here so that it can accurately benchmark as much of startup as possible. This appears here so that it can accurately benchmark as much of startup as possible.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defvar imalison:do-benchmark) (defvar imalison:do-benchmark)
(when (and (boundp 'imalison:do-benchmark) imalison:do-benchmark) (when (bound-and-true-p imalison:do-benchmark)
(use-package benchmark-init)) (use-package benchmark-init))
#+END_SRC #+END_SRC
** GUI Disables ** GUI Disables