Re: [O] OrgStruct for Python source code

2014-03-19 Thread Ilya Shlyakhter
On 3/19/2014 9:19 PM, Ilya Shlyakhter wrote: Another option is to use Thorsten Jolitz's excellent outshine mode ( http://orgmode.org/worg/org-tutorials/org-outside-org.html ). I've written a small extension that allows it to fold language elements: http://www.broadinstitute.org/~ilya/outshine-p

Re: [O] OrgStruct for Python source code

2014-03-19 Thread Ilya Shlyakhter
On 3/19/2014 3:39 PM, Karl Voit wrote: I am evaluating methods to fold Python source code. simply turn on orgstruct-mode in a python buffer and try M-x org-cycle RET on a def: it will fold it. Another option is to use Thorsten Jolitz's excellent outshine mode ( http://orgmode.org/worg/org-tuto

Re: [O] OrgStruct for Python source code

2014-03-19 Thread Karl Voit
* Bastien wrote: > Hi Karl, Hi Bastien! > simply turn on orgstruct-mode in a python buffer and try > M-x org-cycle RET on a def: it will fold it. Oh, even better! :-) Thanks for the pointer! -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https

[O] OrgStruct for Python source code

2014-03-19 Thread Karl Voit
Hi! I am evaluating methods to fold Python source code. I stumbled over orgstruct-mode which looks quite cool to me. My first test with (setq orgstruct-heading-prefix-regexp "^[ ]*##[ ]+\*[ ]") worked out of the box. Unfortunately, this attempt requires a comment linke for each Python-def

Re: [O] OrgStruct for Python source code

2014-03-19 Thread Bastien
Hi Karl, Karl Voit writes: > This should fold all defs. Unfortunately, this does not work at my > side. Did I make a mistake or do I have to limit myself to matching > comment lines only? simply turn on orgstruct-mode in a python buffer and try M-x org-cycle RET on a def: it will fold it. `org