Chinaunix首页 | 论坛 | 博客
  • 博客访问: 418519
  • 博文数量: 114
  • 博客积分: 3361
  • 博客等级: 中校
  • 技术积分: 1060
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-18 13:14
文章分类

全部博文(114)

文章存档

2012年(1)

2011年(84)

2010年(29)

分类: 项目管理

2011-02-27 09:55:58

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.



参考:

阅读(968) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~