From 6ea0c39137e704e6765a8276ac08e27be88417f6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 13 May 2019 00:49:00 -0400 Subject: [PATCH] Ensure use-package settings are set @ compile-time --- core/core-modules.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/core-modules.el b/core/core-modules.el index dee2af2d0..7d636c4d6 100644 --- a/core/core-modules.el +++ b/core/core-modules.el @@ -220,12 +220,13 @@ non-nil, return paths of possible modules, activated or otherwise." ;; ;;; Use-package modifications -(autoload 'use-package "use-package-core" nil nil t) +(eval-and-compile + (autoload 'use-package "use-package-core" nil nil t) -(setq use-package-compute-statistics doom-debug-mode - use-package-verbose doom-debug-mode - use-package-minimum-reported-time (if doom-debug-mode 0 0.1) - use-package-expand-minimally (not noninteractive)) + (setq use-package-compute-statistics doom-debug-mode + use-package-verbose doom-debug-mode + use-package-minimum-reported-time (if doom-debug-mode 0 0.1) + use-package-expand-minimally (not noninteractive))) ;; Adds two new keywords to `use-package' (and consequently, `def-package!') to ;; expand its lazy-loading capabilities. They are: