Misc script stuff?
This commit is contained in:
parent
5ac2cf8632
commit
07b140094b
@ -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
|
||||||
|
|||||||
9
util.el
9
util.el
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user