I use hs-minor-mode
currently.
When point is on class Foo...
a M-x hs-hide-level
will fold all methods of that class.
This is exactly the state I need for all *.py
files when I open them. Is it possible?
When I open a python file all methods of all classes (there could be more then one!) should be folded.
hs-hide-level
was pointed out in that answer.
https://emacs.stackexchange.com/a/50144/12999