Change package! :recipe to extend default recipe
Instead of replacing the whole recipe with the contents of :recipe, only modify the specified properties. This allows you to specify helpful parameters like :nonrecursive or :depth without having to include the full recipe.
This commit is contained in:
parent
baafa0f635
commit
19b6e82dc4
1 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,8 @@ necessary package metadata is initialized and available for them."
|
|||
do (with-demoted-errors "Package error: %s"
|
||||
(straight-register-package
|
||||
(if-let (recipe (plist-get plist :recipe))
|
||||
`(,pkg ,@recipe)
|
||||
(let ((plist (straight-recipes-retrieve pkg)))
|
||||
`(,pkg ,@(doom-plist-merge recipe (cdr plist))))
|
||||
pkg))))))
|
||||
|
||||
(defun doom-ensure-straight ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue