From 0aaedb28bb8bc85834b277355fb9d716f7b2a6d9 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 9 Jul 2016 01:11:13 -0700 Subject: [PATCH] Make auto-compile use-package work when not present --- dotfiles/emacs.d/README.org | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 94bcf8df..4d68b6bd 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -19,12 +19,13 @@ This makes it so that the file that is produced from tangling this file uses lex ** Setup auto-compile This is here because it needs to be activated as early as possible #+BEGIN_SRC emacs-lisp -(use-package auto-compile - :ensure t - :config - (progn - (auto-compile-on-load-mode) - (auto-compile-on-save-mode))) +(when (boundp 'use-package) + (use-package auto-compile + :ensure t + :config + (progn + (auto-compile-on-load-mode) + (auto-compile-on-save-mode)))) #+END_SRC ** 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. @@ -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. #+BEGIN_SRC emacs-lisp (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)) #+END_SRC ** GUI Disables