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

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

[emacs-wiki-discuss] Re: Header is not working


From: Michael Olson
Subject: [emacs-wiki-discuss] Re: Header is not working
Date: Wed, 20 Jul 2005 08:49:24 -0500
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Chris McMahan <address@hidden> writes:

> For some reason, however, the muse-style-element :maintainer is not
> evaluating, so the only item I'm getting from the header file is the
> title of the document.

You have to do derive a custom style from the (x)html style to be able
to set the :maintainer.  Something like the following would suffice.

(unless (assoc "cm-xhtml" muse-publishing-styles)
  (muse-derive-style "cm-xhtml" "xhtml"
                     :maintainer "Chris McMahon"
                     :header "~/Documents/site/header.html"
                     :footer "~/Documents/site/footer.html"))

That's assuming you have several html projects and want a different
header and footer for each one.  If this isn't the case, just remove
the :header and :footer lines and use muse-(x)html-header/footer.

Then your muse-project-alist would look like the following.

(setq muse-project-alist
      '(("WikiPlanner"        ;; use value of `planner-project'
         ("~/notebook/Plans"  ;; where your Planner pages are located
          :default "TaskPool" ;; use value of `planner-default-page'
          :major-mode planner-mode
          :visit-link planner-visit-link)
         (:base "cm-xhtml"
          :path "~/notebook/xhtml"))))

I'm not sure exactly why :maintainer is only looked for in the
publishing style.  I might change the code later on to look in your
muse-project-alist settings first and then the publishing style.

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: anime, Debian, XHTML, wiki, Emacs Lisp
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #pulug
 |_] | \| |_| Jabber: mwolson_at_hcoop.net

Attachment: pgpjS6hsOUJZw.pgp
Description: PGP signature


reply via email to

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