emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: On the 43folders list


From: Chris Lowis
Subject: [emacs-wiki-discuss] Re: On the 43folders list
Date: Mon, 21 Feb 2005 16:29:44 +0000
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Good tip !
How do you make planner auto-publish on save  ?


You can steal my config at
http://sacha.free.net.ph/notebook/emacs/emacs-wiki-config.el . Here's
the relevant snippet:

;;;_+ Automatically publish files upon saving
(defun sacha/emacs-wiki-auto-publish ()
  (when (derived-mode-p 'emacs-wiki-mode)
    (unless emacs-wiki-publishing-p
      (let ((emacs-wiki-publishing-p t)
            (emacs-wiki-after-wiki-publish-hook nil))
        (emacs-wiki-publish-this-page)))))

(add-hook 'emacs-wiki-mode-hook
          (lambda () (add-hook 'after-save-hook
                               'sacha/emacs-wiki-auto-publish nil t)))


That seems to work ! Thank you. Is there a way to publish a today.html file that links/is a duplicate of the current day page ? That way the homepage of my browser could be set to today.html and would update automatically.

Chris





reply via email to

[Prev in Thread] Current Thread [Next in Thread]