Google
 
Back to index

Muse

Muse Quick Start

Muse Document

Muse的配置文件应该用.muse作为结尾。

Muse常用命令:

1) 发布本项目文件到指定目录: M-x muse-project-publish-this-file 如果是用的muse-mode,已经绑定到了C-c C-t快捷键上了。

2) 如果你用1)中的命令,则会默认把文档发布到.emacs里设置好的目录。如果需要把文件单独发布到一个独立的路径,就可以使用C-c M-C-t这个快捷键,即 M-x muse-publish-this-file

3) 如果你要发布整个项目,则用M-x muse-project-publish这个命令,会使project下需要重新发布的文件自动重新发布一遍。

4) 如果你要发布该页面并预览,则用M-x muse-browse-result这个命令,会自动调用你系统的浏览器来预览该网页。

多项目的配置:

(setq muse-project-alist
      '(("ArrAyWiki" ("~/ArrAyWiki" :default "index")
         (:base "html" :path "~/public_html/ArrAyWiki")
         (:base "pdf" :path "~/public_html/ArrAyWiki/pdf"))
       ("MyWiki" ("~/MyWiki" :default "index")
         (:base "html" :path "~/public_html/MyWiki")
         (:base "pdf"  :path "~/public_html/MyWiki/pdf"))))

emacs-w3m

emacs-w3m的一些相关资料

http://emacs-w3m.namazu.org/info/emacs-w3m.html

Official site: http://emacs-w3m.namazu.org/

http://ourcomments.org/Emacs/EmacsW32.html

Emacs-w3m tutorial: http://emacs-w3m.namazu.org/info/emacs-w3m.html

我常用的Emacs-w3m快捷键

Mx w3m-browse-url Open one url website
Tab next link
M-Tab the previous link
q Close an emacs-w3m window and select the other buffer (w3m-close-window).
Q Quit the w3m and don't turn back in a short time

emacs org mode

Official sites: http://orgmode.org/

The Org manual: http://orgmode.org/manual/index.html

Using dates and times in Eamcs org-mode: http://members.optusnet.com.au/~charles57/GTD/org_dates/

A chinese manual: http://linuxtoy.org/org/

Emacs一些零碎而有用的扩展

Special Copy Function

http://www.ibm.com/developerworks/cn/aix/library/0802_bohua_emacs1/index.html

在Emacs中快速地跳转:recent-jump.el

今天在水木社区上看到recent-jump.el这个扩展,觉得蛮有用的。

我们在Emacs里编辑文章的时候,经常会有一些大的跳转。比例说,跳转到buffer的开头,查找等。如果能够快速地跳回到开始的地方,那将十分的方便。

比如说,当我们在写程序代码的时候,我们经常要查一些手册、参考资料什么的,然后再回到我们写代码的地方。如何能方便快速地实现这个功能呢?

recent-jump.el就提供了这样的一个简洁方法。先把recent-jump.el扔到你的path里,然后把下面这些加入到.emacs里:

;; set recent-jump (setq recent-jump-threshold 4) (setq recent-jump-ring-length 10) (global-set-key (kbd "C-o") 'recent-jump-jump-backward) (global-set-key (kbd "M-o") 'recent-jump-jump-forward) (require 'recent-jump)

这样,你就可以用C-o来重拾你中断的地方了,M-o绑定为向前跳跃。这样解释可能不太容易理解,试试就知道了,很好用的。

以Emacs的色彩风格输出你代码的html页面

http://blog.waterlin.org/articles/%E4%BB%A5emacs%E7%9A%84%E8%89%B2%E5%BD%A9%E9%A3%8E%E6%A0%BC%E8%BE%93%E5%87%BA%E4%BB%A3%E7%A0%81%E7%9A%84html%E9%A1%B5%E9%9D%A2.html

改造Emacs的删除行和复制行操作

平时删除行都是用C-k,当然,如果要删除光标到行尾的内容,直接用C-k就行了;但是如果光标不在行首时,要删除整行,则要先用C-a移到行首,然后再C-k删除整行。在删除操作不算太频繁的情况下,倒也还凑合。

可是,最近在关task的时候,在公司的信息系统里关闭了task,还要在自己备份的txt文件里删掉这个task。由于查找等各个方面的原因,光标不可能时时刻刻停留在行首。所以用C-k来删除行的时候,往往要先用一个C-a来把光标移动到行首。在这种删除任务相对密集的情况下,多用好多次C-a真是添加了太多的麻烦!

碰到这种情况,可以有两种方法:

1) C-S-backspace (kill-whole-line) http://www.gnu.org/software/emacs/manual/html_node/emacs/Killing-by-Lines.html

相信大多数人会觉得这种方法比较麻烦,我也是。

2) 改造你的C-w和M-w键

把下面代码扔到.emacs里: (defadvice kill-ring-save (before slickcopy activate compile)

"When called interactively with no active region, copy a single line instead." (interactive (if mark-active (list (region-beginning) (region-end)) (list (line-beginning-position) (line-beginning-position 2)))))

(defadvice kill-region (before slickcut activate compile)

"When called interactively with no active region, kill a single line instead." (interactive (if mark-active (list (region-beginning) (region-end)) (list (line-beginning-position) (line-beginning-position 2)))))

这样,当你没有选中一个区域的时候,C-w会剪切光标所在行,不管光标的位置在哪里;而用M-w的时候,则会复制光标所在的行,不管光标的位置在行首还是行尾还是行中间的任意位置。

是不是觉得更加方便了?

用Emacs来作为Web编辑的开发工具

http://www.dzr-web.com/people/darren/projects/emacs-webdev/

在Emacs中播放音乐

EMMS, The Emacs Multimedia System

http://www.gnu.org/software/emms/

http://www.tanstaafl.cn/Home/EmacsEmms.html

http://pluskid.lifegoo.com/wiki/EMMS.html

bongo

http://www.brockman.se/software/bongo/

SLIME

http://commonmusic.sourceforge.net/doc/emacs.html

这个好像是针对XEmacs的