The `hideshow’ Emacs minor mode lets you hide the content of a block
of code and only see the first line. This is what I put in my
~/.emacs file to have it work with Ruby:
The `hideshow’ Emacs minor mode lets you hide the content of a block
of code and only see the first line. This is what I put in my
~/.emacs file to have it work with Ruby:
Thanks very much! That takes care of one of the two things I think
ruby-mode has been missing. Now, if someone could only implement
def/begin/do->end matching that works like paren-matching does…
Oh well. Gives me a reason to sit down and learn elisp someday.
With the few lines I posted it supports the `hideshow’ style folding
for Ruby. You can find about other general and less general folding
modes at EmacsWiki: Category Outline.
Massimiliano
···
On Sun, Jul 07, 2002 at 06:10:46AM +0900, Tobias Reif wrote:
The `hideshow’ Emacs minor mode lets you hide the content of a block
of code and only see the first line
just out of curiosity; does Emacs feature folding, in general, or for Ruby?
The `hideshow’ Emacs minor mode lets you hide the content of a
block
of code and only see the first line
There is also emacs’ selective-display facility, which shows or hides
based on the existing indentation. So it basically borrows the logic of
ruby-mode or whatever. --Mark