Re: [O] Minor org mode for achieve code folding effects

2012-01-16 Thread David Rogoff
David Rogoff therogoffs.com> writes: > Carlos Russo gmail.com> writes: >> I have used both Carsten's and Eric's solution, as well as hideshow-org (https://github.com/secelis/hideshow-org), which works rather well and deserves a mention. >> Expanding a bit on Carsten's post: Tassilo Horn wrote

Re: [O] Minor org mode for achieve code folding effects

2012-01-12 Thread David Rogoff
Carlos Russo gmail.com> writes: I have used both Carsten's and Eric's solution, as well as hideshow-org (https://github.com/secelis/hideshow-org), which works rather well and deserves a mention. Expanding a bit on Carsten's post: Tassilo Horn wrote some convenience functions to set the outline m

Re: [O] Minor org mode for achieve code folding effects

2012-01-11 Thread Leo Alekseyev
> For instance, when I was doing a lot of Java programming, I used > hideshow.el all the time to hide block and function bodies.  Works very > well (although the default key bindings are annoying to me).  Have a > look!  It's a standard package in emacs, at least in Emacs 24 but much > earlier than

Re: [O] Minor org mode for achieve code folding effects

2012-01-11 Thread Eric S Fraga
Giovanni Giorgi writes: > > > Hi all, > I'd like to edit some ruby/python/shell script using > functions folding. > > I'd like to get a way to fold functions or method. Giovanni, I wonder, having thought about this some more, whether using org mode is the correct solution? (as much as I l

Re: [O] Minor org mode for achieve code folding effects

2012-01-10 Thread Tassilo Horn
Leo Alekseyev writes: > I've done a little bit of digging into how Tassilo's code works, and > realized that it's somewhat broken in the following way: if a mode > provides its own outline-level function, chances are, his code will > break (this is why c-mode doesn't work). Even if default > out

Re: [O] Minor org mode for achieve code folding effects

2012-01-10 Thread Leo Alekseyev
On Tue, Jan 10, 2012 at 7:21 PM, David Rogoff wrote: > > > David Rogoff > January 10, 2012 4:34 PM > Carlos Russo gmail.com> writes: > I have used both Carsten's and Eric's solution, as well as > hideshow-org (https://github.com/secelis/hideshow-org), which works > rather well and deserves

Re: [O] Minor org mode for achieve code folding effects

2012-01-10 Thread David Rogoff
David Rogoff January 10, 2012 4:34 PM Carlos Russo gmail.com> writes: I have used both Carsten's and Eric's solution, as well as hideshow-org (https://github.com/secelis/hideshow-org), which works rather well and deserves a mention. Expanding a bit on Carsten's

Re: [O] Minor org mode for achieve code folding effects

2012-01-10 Thread David Rogoff
Carlos Russo gmail.com> writes: I have used both Carsten's and Eric's solution, as well as hideshow-org (https://github.com/secelis/hideshow-org), which works rather well and deserves a mention. Expanding a bit on Carsten's post: Tassilo Horn wrote some convenience functions to set the outline m

Re: [O] Minor org mode for achieve code folding effects

2012-01-10 Thread Leo Alekseyev
On Tue, Jan 10, 2012 at 3:08 PM, Eric S Fraga wrote: > Giovanni Giorgi writes: > >> >> >> Hi all, >>  I'd like to edit some ruby/python/shell script using >> functions folding. >> >> I'd like to get a way to fold functions or method. > > Carsten has already given you one possible solution; anothe

Re: [O] Minor org mode for achieve code folding effects

2012-01-10 Thread Eric S Fraga
Giovanni Giorgi writes: > > > Hi all, > I'd like to edit some ruby/python/shell script using > functions folding. > > I'd like to get a way to fold functions or method. Carsten has already given you one possible solution; another is to use org + babel with tangling to have each function or

Re: [O] Minor org mode for achieve code folding effects

2012-01-09 Thread Carsten Dominik
On Jan 9, 2012, at 4:14 PM, Giovanni Giorgi wrote: > Hi all, > I'd like to edit some ruby/python/shell script using functions folding. > > I'd like to get a way to fold functions or method. > > I have found this article using outline mode: > http://stackoverflow.com/questions/1085170/how-to-ac

[O] Minor org mode for achieve code folding effects

2012-01-09 Thread Giovanni Giorgi
Hi all, I'd like to edit some ruby/python/shell script using functions folding. I'd like to get a way to fold functions or method. I have found this article using outline mode: http://stackoverflow.com/questions/1085170/how-to-achieve-code-folding-effects-in-emacs but frankly I find it