From 19b6e82dc44a0c953c74d4321d06609534d4ac91 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 29 Jul 2019 17:22:27 +0200 Subject: [PATCH] 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. --- core/core-packages.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-packages.el b/core/core-packages.el index 18975e851..44af64c0a 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -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 ()