Publishing works by providing Muse with the settings and environment for Planner publishing.
First, make sure that you have set up a proper
muse-project-alist
(see Creating Your Planner).
Second, add:
(require 'planner-publish)
to your .emacs (or _emacs).
To publish your entire Planner project, hit C-c C-p
(muse-project-publish
). To publish just the current buffer, hit
C-c C-t (muse-publish-this-file
).
To automatically publish files when you save them, add the following code to your ~/.emacs (or _emacs):
(eval-after-load "muse-mode" '(add-hook 'after-save-hook #'(lambda () (when (planner-derived-mode-p 'muse-mode) (muse-project-publish nil))) nil t))
The following publishing styles are available.
planner-html
planner-xhtml
planner-xml
The following options may be customized to enhance your publishing experience.
planner-publish-markup-regexps
planner-publish-markup-functions
planner-publish-markup-tags
planner-xml-markup-strings
planner-xml-header
planner-xml-footer
planner-html-markup-strings
planner-html-style-sheet
planner-html-header
planner-html-footer
planner-xhtml-header
planner-xhtml-footer
planner-html-inner-header
planner-html-header
and planner-xhtml-header
.
planner-html-inner-footer
planner-html-footer
and planner-xhtml-footer
.
planner-publish-prepare-regexps
planner-publish-finalize-regexps