diff options
| author | Jakob L. Kreuze | 2020-07-23 20:24:32 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2020-07-23 20:24:32 -0400 |
| commit | 8e231c0dda4d393cc18561b2ceeff250965049b8 (patch) | |
| tree | 82facf110f854331e38acf021773f073e8833c97 /init.el | |
| parent | c95f7283c3baa97232a47ee45c5c558c5126bab3 (diff) | |
Implement compile-time conditional expansion.
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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") |