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.
This commit is contained in:
parent
9d702afab8
commit
8dfab51df9
5
init.el
5
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)
|
||||
|
|
Loading…
Reference in New Issue