diff --git a/copy_log.sh b/copy_log.sh new file mode 100755 index 0000000..7c9afdb --- /dev/null +++ b/copy_log.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +./org_fix_links.py < /mnt/share/syncthing/notes/log.org > log_tmp.org +emacs -q --batch -l export.el -f export-run diff --git a/export.el b/export.el new file mode 100644 index 0000000..ed4adfd --- /dev/null +++ b/export.el @@ -0,0 +1,9 @@ +;; See still: +;; command-line-args + +(require 'ox-hugo) +(defun export-run () + (progn + (find-file "./log_tmp.org") + (org-hugo-export-as-md) + (write-file "./log_tmp.md")))