logo       

Re: wiki-project: msg#00109

emacs.wiki.general

Subject: Re: wiki-project

> But how do I create another wiki project to switch to?

In your setup files, by fiddling with the lisp variable
"emacs-wiki-projects".

Here's an example. It sets up three projects, with files in
~/public_html/MainProject, ~/public_html/AnotherProject, and
~/public_html/ProjectNumberThree. Wiki files within those directories
are published, respectively, to ~/public_html/mainproject,
~/public_html/anotherproject, and ~/public_html/projectnumberthree.

(Following Sacha, I try to keep everything, published files and source,
inside my public_html so that interested web readers can compare the
original source files with the published html)

Anyway, lisp snippetry follows:

(setq emacs-wiki-projects
'(
("MainProject" .
((emacs-wiki-directories . ("~/public_html/MainProject"))
(emacs-wiki-project-server-prefix . "../mainproject/")
(emacs-wiki-publishing-directory . "~/public_html/mainproject")))
("AnotherProject" .
((emacs-wiki-directories .
("~/public_html/AnotherProject"))
(emacs-wiki-project-server-prefix . "../anotherproject/")
(emacs-wiki-publishing-directory .
"~/public_html/anotherproject")))
("ProjectNumberThree" .
((emacs-wiki-directories .
("~/public_html/ProjectNumberThree"))
(emacs-wiki-project-server-prefix . "../projectnumberthree/")
(emacs-wiki-publishing-directory .
"~/public_html/projectnumberthree")))
))


If you invoked that, then provided you are already in a buffer of a file
within any of the three emacs-wiki-directories, hitting C-c C-v should
allow you to switch to any of the three projects. C-c C-p within any of
them will publish that particular projects files.

tc


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise