Tutorial on how to edit a trac wiki page in emacs

1. copy trac-wiki.el and xml-rpc.el in /usr/share/emacs/site-lisp/

2. install its all text xpi and restart your webbrowser

3. add the following lines to your .emacs file

(defun trac-wiki-auto-mode-function ()
  (if (and (eq major-mode 'text-mode)
	   (member (file-name-extension (buffer-file-name))
		   '("txt" "wiki"))
	   (re-search-forward "^=+ [^=\n]+ =+\\s *$" nil t))
      (trac-wiki-mode)))

(add-hook 'find-file-hook
	  'trac-wiki-auto-mode-function)

3. open a new wiki page

4. Right click on the edit button on the right hand bottom corner of the wiki text area.