From: Christian Neukirchen Date: 2005-04-26T23:26:38+09:00 Subject: Re: Folding editor for ruby code browsing kyu writes: > 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 personally sometimes use hs-minor-mode in combination with reveal-mode (I use GNU Emacs 22.0.50). I added this to my .emacs: (add-to-list 'hs-special-modes-alist (list 'ruby-mode (concat ruby-block-beg-re "\\|{") (concat ruby-block-end-re "\\|}") "#" 'ruby-forward-sexp nil)) It's not perfect, but better than nothing... and reveal-mode rocks for navigation, esp. in combination with sidebar. -- Christian Neukirchen http://chneukirchen.org