mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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 ()
|
||||
|
Reference in New Issue
Block a user