Clean-up org-publish functionality

This commit is contained in:
Marcel Kapfer 2022-01-30 19:05:20 +01:00
parent 7416626bdd
commit 2b59f2308d
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
2 changed files with 5 additions and 10 deletions

View file

@ -54,12 +54,8 @@
:publishing-function org-publish-attachment
:recursive t)))
(defun mmk2410/dot-emacs-publish-additional ()
(rename-file
(concat mmk2410/dot-emacs-publish-publishing-dir "config.html")
(concat mmk2410/dot-emacs-publish-publishing-dir "index.html")))
(org-publish-all t)
(defun mmk2410/dot-emacs-publish ()
(interactive)
(org-publish-all t)
(mmk2410/dot-emacs-publish-additional))
(rename-file
(concat mmk2410/dot-emacs-publish-publishing-dir "config.html")
(concat mmk2410/dot-emacs-publish-publishing-dir "index.html"))

View file

@ -1,4 +1,3 @@
#!/bin/sh
# emacs -Q --script ./publish.el
emacs -q --batch -l ./publish.el --funcall mmk2410/dot-emacs-publish
emacs -Q --script ./publish.el