I thought about doing batch export but ended up being too lazy to integrate it in my release flow. My compromise is to use this snippet:
(defun make-blogging-mode () (interactive) (toggle-word-wrap) (toggle-truncate-lines) (flycheck-mode) (flycheck-vale-toggle-enabled) (add-hook 'after-save-hook 'org-mode-export-hook) )
# -*- find-file-hook: make-blogging-mode -*-
I thought about doing batch export but ended up being too lazy to integrate it in my release flow. My compromise is to use this snippet:
And this find-file hook in my blog template: My new computer is beefy enough that I barely notice the export on save. I wouldn't recommend this on slower boxes as it freezes emacs for a bit.