[emacs] require use-package when debugging
authorAmin Bandali <bandali@gnu.org>
Wed, 26 Dec 2018 23:35:33 +0000 (18:35 -0500)
committerAmin Bandali <bandali@gnu.org>
Wed, 26 Dec 2018 23:35:33 +0000 (18:35 -0500)
init.org

index c256b7f..7b8e220 100644 (file)
--- a/init.org
+++ b/init.org
@@ -256,11 +256,13 @@ and without compromising on performance.
 
 #+begin_src emacs-lisp
 (straight-use-package 'use-package)
-(if nil  ; set to t when need to debug init
-    (setq use-package-verbose t
-          use-package-expand-minimally nil
-          use-package-compute-statistics t
-          debug-on-error t)
+(if nil                             ; set to t when need to debug init
+    (progn
+      (setq use-package-verbose t
+            use-package-expand-minimally nil
+            use-package-compute-statistics t
+            debug-on-error t)
+      (require 'use-package))
   (setq use-package-verbose nil
         use-package-expand-minimally t))