一直断断续续地使用着emacs,曾经也配置过Emacs以编写代码,现在基本上熟练了基础使用。
断断续续对其进行过设置,但中间有好些东西忘记了又重新找资料设置,然后过段时间又要再搜资料。好记性不如烂笔头啊。
现在觉得遇到一点瓶颈,再抽一两天时间翻资料,设置。其间大部分资料都是通过emacser.com获得
以下是我个人的一些设置过程:
To quickly tryout YASnippet, download the simpler "bundle" version. If you plan to modify the bundled templates and/or build your own, download the "normal" package.
- Download yasnippet-bundle on the right sidebar and unpack it.
- You'll get a file named yasnippet-bundle.el, put it in ~/.emacs.d/plugins/ (create that directory if not exists).
- Open the file in Emacs, and type Alt+x eval-buffer.
That's it. Now open any file, you'll see a menu "YASnippet". You can pull down the menu to insert a template. Or, you can type a pre-defined abbrev and press TAB to expand it! To have Emacs load YASnippet automatically when it starts, put the following in your ~/.emacs file:
(add-to-list 'load-path"~/.emacs.d/plugins")
(require 'yasnippet-bundle)
6. 配置文件的保存
Emacs非常 强大,好些功能正在进一步摸索之中。
完整的.emacs文件如下
参考资料:
Emacs
http://alexpogosyan.com/color-theme-creator/ 在线对Emacs进行配色的网站,有点意思。
http://www.elliotglaysher.org/emacs/ 很全的配置
C++
[1]。http://www.mysmu.edu/me2005/zhaopeng.2005/notes/Emacs.html
[2]。http://www.xsteve.at/prg/emacs/ 老外的较好的配置tips
[3]. CEDET配置:http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html
http://emacser.com/cedet.htm
PYthon
[1]. http://hide1713.wordpress.com/2009/01/30/setup-perfect-python-environment-in-emacs/ 不错的文章
http://www.enigmacurry.com/2008/05/09/emacs-as-a-powerful-python-ide/
http://fayaa.com/code/view/767/
http://www.cnblogs.com/henrya2/archive/2009/02/21/1395612.html
Emacs python Completion : www.rwdev.eu/articles/emacspyeng