[Tutor] was What IDE do you prefer? - now folding python in emacs

Ashish Shrestha lists@shrestha.net.np
Tue, 24 Sep 2002 22:03:11 +0545

Anthony Barker wrote:
>>> emacs has a folding add-in module- have you tried it?
>>> fte has folding - but I am not crazy about it.
>> I never really used emacs a lot. I know that there is
>> a folding mode that is based on some special notation
>> in the text. Can it fold python purely based on indentation?
> Yes it is fairly simple - I picked up the script from google groups. It 
> doesn't require the fancy script Anders Lindgren wrote.
> taken from:
> http://groups.google.ca/groups?q=emacs+folding+python&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=uelftqprw.fsf%40cs.unc.edu&rnum=2 


well, the folding in vim and jedit is simpler. both can be told to fold 
on indent.

for vim it is:
set fdm=indent
to set folding column width
set fdc=4

in jedit there it is under global options/editing