;;; emacs-wiki-init.el --- configuration file for emacs-wiki
;; This file is part of Michael Olson's Emacs settings.
;; The code in this file may be used, distributed, and modified
;; without restriction.
;; I use initsplit.el to separate customize settings on a per-project
;; basis.
;;; Add to load path
(add-to-list 'load-path "/stuff/proj/emacs/emacs-wiki/mwolson")
;;; Initialize
(require 'emacs-wiki)
(require 'emacs-wiki-menu)
(require 'emacs-wiki-srctag)
;;; Set things up for multiple projects
;; Set projects list
(setq emacs-wiki-projects
`(("WebWiki" .
((emacs-wiki-directories . ("~/proj/notmine/web-copy"))
(emacs-wiki-project-server-prefix . "/web/")
(emacs-wiki-publishing-directory
. "~/proj/notmine/web-out")))
("ProjectsWiki" .
((emacs-wiki-directories . ("~/proj/notmine/projects-copy"))
(emacs-wiki-project-server-prefix . "/projects/")
(emacs-wiki-publishing-directory
. "~/proj/notmine/project-out")))))
;; Set the menu
(setq emacs-wiki-menu-definition
'(("About me" "/web/AboutMe.html"
"About me, contact info.")
("Albums" "http://mwolson.risnerolson.org/albums/"
"Photo albums and the like.")
("Blog" "/blog/"
"My blog.")
("Bookmarks" "/bookmarks/"
"Bookmarks from my web browser.")
("Guestbook" "/blog/guestbook.html"
"Leave comments about me or my site here.")
("Projects" "/projects/"
"Software that I work on, configuration.")
("Works" "/web/WorksPage.html"
"Miscellaneous things I work on.")))
;; Add to interwiki list
(add-to-list 'emacs-wiki-interwiki-names
'("ArchWiki" .
(lambda (tag)
(concat "http://wiki.gnuarch.org/"
(or tag "FrontPage")))))
(add-to-list 'emacs-wiki-interwiki-names
'("BlogWiki" .
(lambda (tag)
(concat "/blog/"
(or tag "index.html")))))
(add-to-list 'emacs-wiki-interwiki-names
'("PlugWiki" .
(lambda (tag)
(concat "http://plug.student-orgs.purdue.edu/plugwiki/"
(or tag "FrontPage")))))
;;; Functions
;; Insert header
(defun my-emacs-wiki-insert-header ()
(ignore (insert-file-contents
"/home/mike/personal-site/emacs-wiki/header.html")))
;; Insert footer
(defun my-emacs-wiki-insert-footer ()
(ignore (insert-file-contents
"/home/mike/personal-site/emacs-wiki/footer.html")))
;; Get last N ChangeLog entries
(defun my-get-changelog-entries (num-entries)
"Return the most recent entries from the ChangeLog file.
It will look in the current directory for this file. The number
of entries is determined by NUM-ENTRIES.
You can put