summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-05-26 17:29:24 -0500
committerCase Duckworth2021-05-26 17:29:24 -0500
commit8dfab51df994e1e48cf48ba55abf313f94593aa1 (patch)
treea2ef11864981566bf1369d4329e31146e1fd83b0
parentChange eval-after-load to with-eval-after-load (diff)
downloademacs-8dfab51df994e1e48cf48ba55abf313f94593aa1.tar.gz
emacs-8dfab51df994e1e48cf48ba55abf313f94593aa1.zip
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.
-rw-r--r--init.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/init.el b/init.el index d8fb206..aeb4bcc 100644 --- a/init.el +++ b/init.el
@@ -25,10 +25,7 @@
25(setup setup 25(setup setup
26 (setup-define :straight 26 (setup-define :straight
27 (lambda (recipe) 27 (lambda (recipe)
28 `(or (ignore-errors (straight-use-package ',recipe)) 28 `(straight-use-package ',recipe))
29 (progn
30 (message "Straight error: %S" ',recipe)
31 (throw 'setup-exit nil))))
32 :documentation "Install RECIPE with `straight-use-package'." 29 :documentation "Install RECIPE with `straight-use-package'."
33 :repeatable t 30 :repeatable t
34 :shorthand (lambda (sexp) 31 :shorthand (lambda (sexp)