Group comment

David Bolen db3l at
Mon Mar 1 23:58:11 CET 2004

"Diez B. Roggisch" <nospam-deets at> writes:

> Use (x)emacs and type 
> M-x comment-region
> Type
> C-u M-x comment-region
> to uncomment. Of course you can bind that to keys. C-c-< and C-c-> will
> dedent/indent the current selection. Very useful.

Since presumably you're using python-mode (from your comment about the
dedent/indent bindings), you may like to know that the commenting
commands are already bound to keys by default.  C-c # to comment,
C-u C-c # to uncomment.

-- David

More information about the Python-list mailing list