Fix void-variable: use-package-defaults error

In case use-package hasn't been loaded by this point (if the config has
been fulled byte-compiled).
This commit is contained in:
Henrik Lissner 2018-06-24 19:59:35 +02:00
parent e99ae5382c
commit ecdde3f377
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -750,6 +750,7 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
(message "No targets to %scompile" (if recompile-p "re" "")))
(cl-return-from 'byte-compile))
(condition-case e
(require 'use-package)
(let ((use-package-defaults use-package-defaults)
(use-package-expand-minimally t))
;; Prevent packages from being loaded at compile time if they