From: kyu Date: 2005-04-26T06:25:56+09:00 Subject: Re: Folding editor for ruby code browsing kyu wrote: > Andrew Walrond wrote: > >> On Monday 25 April 2005 19:23, kyu wrote: >> >> >>> Emacs can do this just as well >>> http://www.chrislott.org/geek/emacs/n2n_folding_mode.php >>> (see the customizing folding mode section) >>> >> >> >> Thaks for the pointer, but I was really looking for something that >> doesn't involve adding any special 'fold mark' comments into the code. >> >> Andrew >> >> >> >> > Hmm, i was trying to get it folding on def/end lines, but it's not > going along with my plan, there must be a simple way to do this, have > you tried cedet/ecb? It wouldn't suprise me if there is folding stuff > in there, although it might take a bit of lisping to setup for ruby. > > I got it going with cedet/ecb, i simply installed them both (to /usr/share/emacs/site-lisp/) and added this: to my .emacs ;; Emacs Code Browser / CEDET (load-file "/usr/share/emacs/site-lisp/cedet/common/cedet.el") (semantic-load-enable-code-helpers) (add-to-list 'load-path "/usr/share/emacs/site-lisp/ecb") (load-file "/usr/share/emacs/site-lisp/ecb/ecb.el") (require 'ecb) Then after emacs has started type M-x ecb-activate, you should have a window on the left hand side which shows a list of classes(and methods), buffers, source files in current tree and a directory view. I can't find folding support but i can't imagine how you'd need it with that list (third button click also takes you to each part)If you're still nonplussed i'll send you a screenshot if you like. Hope this helps. -kyu