【发布时间】:2011-02-26 02:12:27
【问题描述】:
我正在使用 Emacs 23 和 VM 8.1 来编写和阅读电子邮件。我正在使用 Supercite 3.1 在我的回复中获得精美的引用,例如
Foo> bla bla bla ... When are you
Foo> resuming the work on our paper?
我想获得与 fill-paragraph 相同的功能,但在引用上。 我看到它在 LaTeX 模式(具有相同的函数 fill-paragraph)q 中的注释部分上工作,所以我假设我只需要为 fill-paragraph 设置正确的正则表达式来完成这项工作,但是哪个和通过哪个钩子?
示例
我想要这样,在编辑掉“bla bla bla ...”后得到以下内容
Foo> When are you
Foo> resuming the work on our paper?
并按 M-q,以获得正确填写的引文,例如
Foo> When are you resuming the work on
Foo> our paper?
在 LaTeX 模式中,相当于从
% When are you
% resuming the work on our paper?
到
% When are you resuming the work on our paper?
后期添加
Supercite 文档建议使用 filladapt 或 gin-mode。 (http://www.delorie.com/gnu/docs/emacs/sc_4.html)
有人提到“filladapt.el 需要进行一些重写以适应当今的 Emacs。”在http://www.emacswiki.org/emacs/FillAdapt 反正我试过了,没有成功。
它的替代品 gin-mode.el (http://www.gaertner.de/~neitzel/sw.html) 在其作者的 cvs 服务器上不可用。
【问题讨论】:
标签: emacs