From: Christian Neukirchen Date: 2006-08-16T00:53:24+09:00 Subject: Re: block commenting-out Daniel Harple writes: > On Aug 15, 2006, at 6:42 AM, Christian Neukirchen wrote: > >> Chad Perrin 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 http://chneukirchen.org