summaryrefslogtreecommitdiff
path: root/www/build-site.el
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-19 13:28:21 +0100
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-19 13:28:21 +0100
commit87454b301ab77b37aa264c38bae87d4c174a88b0 (patch)
treeadf2e39625e12beb7e561953704c2e8aaa9c30e5 /www/build-site.el
parentdec60afeae6ab0340db5f5ec651c3b002c404551 (diff)
Create proper object for the builder
It turned out I had not constructed a real closure before. I also decided to explicitly return nil for future code expansions.
Diffstat (limited to 'www/build-site.el')
-rw-r--r--www/build-site.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/www/build-site.el b/www/build-site.el
index cac2525..575bfe2 100644
--- a/www/build-site.el
+++ b/www/build-site.el
@@ -2,9 +2,12 @@
( require 'ox-publish )
-( setq build-publication
+( defun publication-builder ()
( let ( ( report-success "Build complete!" ) )
( lambda ()
- ( message report-success ) ) ) )
+ ( message report-success )
+ ( ) ) ) )
-( funcall build-publication )
+( defvar publish ( publication-builder ) )
+
+( funcall publish )