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 :publishing-function org-publish-attachment
:recursive t))) :recursive t)))
(defun mmk2410/dot-emacs-publish-additional () (org-publish-all t)
(rename-file
(concat mmk2410/dot-emacs-publish-publishing-dir "config.html")
(concat mmk2410/dot-emacs-publish-publishing-dir "index.html")))
(defun mmk2410/dot-emacs-publish () (rename-file
(interactive) (concat mmk2410/dot-emacs-publish-publishing-dir "config.html")
(org-publish-all t) (concat mmk2410/dot-emacs-publish-publishing-dir "index.html"))
(mmk2410/dot-emacs-publish-additional))

View file

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