[PLUG] Emacs: display only buffer rows beginning in column 1
Galen Seitz
galens at seitzassoc.com
Tue Jun 7 18:17:03 UTC 2022
On 6/7/22 10:32, Rich Shepard wrote:
> Perhaps my web search terms ask the wrong questions, but I've not found how
> to 'collapse' an emacs buffer so only those lines beginning in column 1 are
> displayed.
>
> My use is python coding. A module (*.py file) will have multiple classes
> defined, each class beginning in column 1 while all following lines are
> indented (4 spaces here). When I want to see what classes are in a buffer
> being able to see only class names, then returning to view all lines, is
> quite useful.
>
> In the 1980s I used a DOS programming editor called 'MultiEdit' that had
> this capability and it was really useful. I'm sure that emacs can do it yet
> I've not found how.
>
> Please point me to resources where I can learn how to do this.
It sounds like you would benefit from some python-specific emacs code.
This looks relevant:
<https://stackoverflow.com/questions/18479208/emacs-plugin-to-list-all-methods-in-a-python-module>
galen
--
Galen Seitz
galens at seitzassoc.com
More information about the PLUG
mailing list