emacs-wiki and automatic publishing

| emacs

I use this nifty LISP snippet to automatically publish my pages whenever I save.

(add-hook 'emacs-wiki-mode-hook (lambda () (add-hook 'after-save-hook (lambda () (unless emacs-wiki-publishing-p (emacs-wiki-publish-this-page))) nil t)))

This used to be a fairly big hassle back when emacs-wiki tried to do multiline parsing for =,
but now it’s acceptably fast.
Next up: I wonder if http://lufs.sourceforge.net can help me publish to http://richip.dhs.org/~sachac/ automatically…

You can comment with Disqus or you can e-mail me at sacha@sachachua.com.