Daniel Harple <dharple / generalconsumption.org> writes:

> 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).

I knew there was an easier way, but M-; requires using transient-mark
mode (shudder).  Well, not too bad in Emacs 22, C-SPC, C-SPC.

> -- Daniel
-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org