branch: externals/setup commit 35b4f182715803b3954fc56b407514e362159eb6 Author: Philip K <phil...@posteo.net> Commit: Philip K <phil...@posteo.net>
Add :also-load macro --- setup.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.el b/setup.el index dfd3293..2f1df75 100644 --- a/setup.el +++ b/setup.el @@ -336,6 +336,14 @@ form (append VAR), " :documentation "Add FUNCTION to HOOK only in buffers of the current mode." :repeatable t) +(setup-define :also-load + (lambda (feature) + `(require ',feature)) + :signature '(FEATURE ...) + :documentation "Load FEATURE with the current body." + :repeatable t + :after-loaded t) + (setup-define :needs (lambda (binary) `(unless (executable-find ,binary)