From: Christian Neukirchen Date: 2007-01-03T03:29:48+09:00 Subject: Re: A reftex-like mode for ruby in emacs ? Vincent Fourmond writes: > Hello ! > > I'm a fervent emacs user, and I've been recently amazed and delighted > by the simplicity and ease of use of Reftex, or more specifically > reftex-toc. It is a bit of emacs code that lets you browse through the > table of contents of a LaTeX document. For instance, if I run it on my > PhD, I get something like > > [sorry, french...] > > 1 Introduction > 1.1 O� va-t-on ? > 1.2 La photosynth�se > 1.2.1 G�n�ralit�s > ... > > I just need to select one line with the cursor, press enter, and I go > to the relevant line in the relevant file. > > Does anyone know if something similar is available for Ruby ? Say, you > have a code tree (or even a file), you press a few keys and you get an > outline, with only, say module, classes and method definitions (without > code) and you can select and go there ? I usually find myself looking > for methods more longer than I actually code, that would definitely help. > > Or, at least, would that interest anyone if I tried it ? Try speedbar or maybe imenu. Or, if nothing helps, M-x occur RET ^\s-*\(class\|module\|def\) > Cheers, > > Vincent -- Christian Neukirchen http://chneukirchen.org