On Aug 15, 2006, at 6:42 AM, Christian Neukirchen wrote:

> Chad Perrin <perrin / apotheon.com> writes:
>>
>> Vim could, of course, do it via a substitution iterating over a  
>> number
>> of lines indicated by a prepended number.  I'm sure EMACS (Esc  
>> Meta Alt
>> Ctrl Shift) could do something similar, but with four times as  
>> many keys
>> involved.
>>
>> What, me biased?  Never.
>
> M-x comment-region
>
> Bind to every key you like (I don't use it often).
>
> C-u M-x comment-region (or M-x uncomment-region) will uncomment.

Try M-; (comment-dwim).

-- Daniel