summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.el b/init.el
index 7e33dc1..f2dff6c 100644
--- a/init.el
+++ b/init.el
@@ -143,6 +143,12 @@
(path (expand-file-name file-name module-directory)))
`(insert-code-from-file ,path)))
+(defmacro expand-when (conditional &rest form)
+ "Expand if and only if `CONDITIONAL' is truthy at compile-time."
+ (if (eval conditional)
+ `(progn ,@form)
+ '(progn)))
+
(load-module "core")
(load-module "jakob")
(load-module "appearance")

© 2015 - 2026 Jakob L. Kreuze