Misc script stuff?

This commit is contained in:
Chris Hodapp 2021-08-07 11:49:38 -04:00
parent 5ac2cf8632
commit 07b140094b
3 changed files with 11 additions and 0 deletions

View File

@ -4,3 +4,5 @@ emacs -q --batch -l util.el -f filter-org
echo "Calling org_fix_links.py..." echo "Calling org_fix_links.py..."
./org_fix_links.py < ./_tmp_filtered.org > ./_tmp_filtered2.org ./org_fix_links.py < ./_tmp_filtered.org > ./_tmp_filtered2.org
emacs -q --batch -l util.el -f export-run emacs -q --batch -l util.el -f export-run
#sed -i -e "s/^- /- /g" log.md

View File

@ -67,3 +67,12 @@
(write-file "./log.md")) (write-file "./log.md"))
;; TODO: use command-line-args so that I can pass in the filename ;; TODO: use command-line-args so that I can pass in the filename
;; instead of hard-code it ;; instead of hard-code it
(defun export-all-run ()
(let* ((fname "/mnt/share/syncthing/notes/log_pub.org"))
(princ (format "Open %s...\n" fname))
(find-file fname)
(princ "Export with ox-hugo...\n")
(org-hugo-export-wim-to-md :all-subtrees)))
;; TODO: use command-line-args so that I can pass in the filename
;; instead of hard-code it