Hide comments in emacs python mode?

Charles Fox charles.fox at gmail.com
Tue Oct 30 10:11:49 EDT 2007


Hi guys,

I'm playing with Python in emacs, with python mode.

I'd like to be able to press a key to toggle the code comments on and
off -- to switch between beautiful clean Python code, and the full
text that tells me what's going in in English.

Is this currently possible?  I know there is a hide/show mode in
emacs, it would need to be set to hide (1) whole lines that start with
#, (2) parts of lines after the '#' for comments after code.  Has
anyone already written this?




More information about the Python-list mailing list