Only use-package benchmark when use-package exists

This commit is contained in:
Ivan Malison 2016-08-15 11:28:30 -07:00
parent d126e35be2
commit c45c82e460
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -58,9 +58,10 @@ dotfiles repo but they are shared across machines elsewhere.
This appears here so that it can accurately benchmark as much of
startup as possible.
#+BEGIN_SRC emacs-lisp
(defvar imalison:do-benchmark)
(when (bound-and-true-p imalison:do-benchmark)
(use-package benchmark-init))
(defvar imalison:do-benchmark)
(when (and (boundp 'use-package)
(bound-and-true-p imalison:do-benchmark))
(use-package benchmark-init))
#+END_SRC
** GUI Disables
Death to any gui elements in emacs! Do this EARLY so that emacs