Add Emacs automation experimentation

This commit is contained in:
Chris Hodapp 2020-04-15 19:03:43 -04:00
parent 0aabd0267d
commit 733eee341c
2 changed files with 13 additions and 0 deletions

4
copy_log.sh Executable file
View File

@ -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

9
export.el Normal file
View File

@ -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")))