3 ms·
I checked out your articles and I like your writing style! I thought about doing batch export but ended up being too lazy to integrate it in my release flow. M
by dpbriggs 6y ago
I checked out your articles and I like your writing style!
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)
)
And this find-file hook in my blog template:
# -*- find-file-hook: make-blogging-mode -*-
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.