开发者

Ruby navigation in Emacs

开发者 https://www.devze.com 2023-01-26 18:03 出处:网络
I am trying to use emacs for my rails project. I am kind of fed up with the etag navigation, Its really dumb. So is there any other way to do source code navigation for ruby in emacs?

I am trying to use emacs for my rails project. I am kind of fed up with the etag navigation, Its really dumb. So is there any other way to do source code navigation for ruby in emacs?

Note: I also use rinari minor mode. Wh开发者_如何学Goich is kind of intelligent to move between models, views ... But what i want is some kind of jump to definition kind of stuff that you can see in regular IDEs. Please dont suggest me any IDEs as i am pretty satisfied with Emacs for everything else but this


For more advanced "jump to definition", check out robe.


ECB, or Emacs Code Browser (http://ecb.sourceforge.net/), is great for this. I use it for Rails Development; on activation, by default, you'll get a three panel window with folder structure, file list, and method browser.

For jumping to specific method definitions, check out the TextMate Minor Mode. the command s-T will get you a dialogue that jumps you to the specified method, matching as you type.


Best Emacs and Rails combination mode is rinari-mode http://rinari.rubyforge.org/ and rhtml-mode

It is available on melpa. Just run

M-x list-packages

And select rinari-mode and rhtml-mode

rinari-mode has advance navigation system. it also supports etags http://rinari.rubyforge.org/Navigation.html#Navigation

(setq rinari-tags-file-name "TAGS")
0

精彩评论

暂无评论...
验证码 换一张
取 消