From 8dfab51df994e1e48cf48ba55abf313f94593aa1 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 26 May 2021 17:29:24 -0500 Subject: Fix a weird error with straight-use-package Description: With the (or (ignore-errors ...) (progn ...)) form, `:straight' threw an error /only/ with `avy'. I couldn't figure out what the error was by re-evaluating or changing it to just throw straight's error or anything, and straight-use-package always returned t. However, changing the form to the simpler (straight-use-package) just ... works. So I have no idea what the matter might be. I realized that I made the :straight form more complicated to begin with because I was installing a lot of different packages and they were all over the place, so I wanted to know that it failed sooner rather than later, but still load the rest of my init file. Now that my config is more stable, I feel okay taking the extra stuff out of the form. --- init.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/init.el b/init.el index d8fb206..aeb4bcc 100644 --- a/init.el +++ b/init.el @@ -25,10 +25,7 @@ (setup setup (setup-define :straight (lambda (recipe) - `(or (ignore-errors (straight-use-package ',recipe)) - (progn - (message "Straight error: %S" ',recipe) - (throw 'setup-exit nil)))) + `(straight-use-package ',recipe)) :documentation "Install RECIPE with `straight-use-package'." :repeatable t :shorthand (lambda (sexp) -- cgit 1.4.1-21-gabe81