emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/setup 35b4f18 11/17: Add :also-load macro


From: Stefan Monnier
Subject: [elpa] externals/setup 35b4f18 11/17: Add :also-load macro
Date: Sat, 13 Mar 2021 18:15:14 -0500 (EST)

branch: externals/setup
commit 35b4f182715803b3954fc56b407514e362159eb6
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]