emacs trac-wiki-mode使用

1030阅读 0评论2011-02-27 alanland
分类:项目管理

Tutorial on how to edit a trac wiki page in emacs

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

2. install and restart your webbrowser

3. add the following lines to your .emacs file

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

  7. (add-hook 'find-file-hook
  8. '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.



参考:

上一篇:(Endpoint, Namespace,RPC/Document Type)
下一篇:liunx 安装 oracle-xe