emacs-wiki and automatic publishing

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…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>