Emacs Python folding fixed

By making use of the outline minor mode of Emacs, one can do Python code folding. However, it seems MOST of the available .emacs examples illustrating this are broken, as you’ll find if you try to use them on any Python code longer than three lines.

Here is a correct example, thanks to me and goof.

Related posts:

  1. Python IDE wanted, good, cheap and fast. :)
  2. A quick Python note
  3. Emacs Code Browser
  4. Lush, OCaml and more, part deux
  5. Swapping variables without a temporary

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>