去年下载了emacs的rails模块,用起来很方便. 今天到了他 的主页发现已经更新, 添加了好多的功能,特别是代码跳转。由于rails的mvc模式,常常需要在一个功能的model、view和control代码间来回转换。例如,我有一个controll名字叫做show, 里面有一个方法hello,这个方法就对应这一个view叫做show/hello.rhtml。我在hello的方法里面创建了一些变量,之后我要把他们用到hello.rhtml里面,这时候把光标移动到hello的方法里,再用快捷键c-c <up>就会自动跳转到 hello.rhtml了。除此之外他还定义了很多的snippet. 还可以在emacs里面通过ri看文档。。。。
这里是一些screenshot
![](http://farm1.static.flickr.com/166/404840379_3bc95f9bac_o.jpg)
![](http://dima-exe.ru/assets/2006/12/18/01.png)
![](http://dima-exe.ru/assets/2006/12/18/02.png)
![](http://dima-exe.ru/assets/2006/12/18/03.png)
这里是他的一个 video</up>