[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: emacs-wiki-menu-make-from-list example?
From: |
Michael Olson |
Subject: |
[emacs-wiki-discuss] Re: emacs-wiki-menu-make-from-list example? |
Date: |
Wed, 26 Jan 2005 14:39:17 -0500 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
TC <address@hidden> writes:
> Could someone give me an example of that, in the context of an
> individual project's settings (i.e. inside the project in question's
> variables, within a setq emacs-wiki-projects block)? What I
> currently have (and which simply produces an html comment about bad
> lisp) is:
>
> (emacs-wiki-menu-factory . (emacs-wiki-menu-make-from-list ("a", "b", "c")))
In the latest development version, it should be much easier to handle
menus from list. Put something like
(emacs-wiki-menu-factory . 'emacs-wiki-menu-make-from-list)
in whichever project you want to have menus from lists. Then
customize the value of `emacs-wiki-menu-definition'.
If you want a different menu on a particular page, do something like
<lisp>(setq emacs-wiki-menu-definition
'(("my description 1" "http://here1.com" "tooltip 1")
("my description 2" "http://here2.com" "tooltip 2"))
</lisp>
on that page. Hope this makes things easier.
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Jabber: mwolson_at_hcoop.net -- IRC: mwolson on freenode.net: #muse, #pulug
/~ |\ | | | Interests: animé, Debian GNU/Linux, XHTML, wiki, Lisp
|_] | \| |_| Fun quotes: http://www.mwolson.org/plans/QuoteList.html
pgp2W_kxZ0vbN.pgp
Description: PGP signature