ffs

Form feed-separated plain text presentations with Emacs

git clone https://www.shemshak.org/~amin/ffs


diff --git a/.gitignore b/.gitignore
index a6ba8ac..cf9eaf4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
 *.elc
 *-autoloads.el
 *-pkg.el
-ffs.html
-ffs.info
 ffs.texi
+ffs.info
+ffs.html
+ffs-changelog.html
diff --git a/CHANGELOG.org b/CHANGELOG.org
index 63b61f3..4fb0a26 100644
--- a/CHANGELOG.org
+++ b/CHANGELOG.org
@@ -43,6 +43,12 @@ I picked "ffs" as the package name, the acronym for form feed slides.
 * COMMENT Local Variables
 
 # Local Variables:
+# org-html-datetime-formats: ("%F" . "%FT%T%z")
+# org-html-meta-tags: ox-bhtml-meta-tags-default
+# org-html-postamble: t
 # org-html-postamble-format: (("en" "<hr />
 # <p><a href=\"%i\">Org source</a></p>"))
+# org-html-home/up-format: "<p><a accesskey=\"h\" href=\"%s\">&larr; home | خانه</a></p>"
+# org-html-head-include-default-style: nil
+# org-export-timestamp-file: nil
 # End:
diff --git a/Makefile b/Makefile
index 32f0ccd..562541b 100644
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,16 @@ clean:
 	@echo "Generating $@ from $<"
 	$(MAKEINFO) $(MAKEINFO_html_opts) $<
 
+.org.html:
+	@echo "Generating $@ from $<"
+	@$(EMACS) --batch \
+	  --load "$$HOME/.emacs.d/lisp/bandali-oxen" \
+	  --eval '(setq enable-local-variables :all)' \
+	  --find-file "$<" \
+	  --funcall ox-bhtml-export-to-html
+
 ffs.texi: ffs.org
 ffs.info: ffs.texi
 ffs.html: ffs.texi
+ffs-changelog.html: CHANGELOG.html CHANGELOG.org
+	@[ -e CHANGELOG.html ] && $(MV) CHANGELOG.html ffs-changelog.html || true