Paul Kraus <[EMAIL PROTECTED]> wrote: > Is there a way to easily have emacs comment out xnumber of lines. > > If something{ > Then do > Else > Do > } > > Alt 5 Ctrl - somecoolsequence I don't know > > #If something{ > # Then do > #Else > # Do > #} > > Sort of perl related assuming you hackers are using 'real editor' > :)
Something like ESC 5 ESC x replace-regexp <<enter>> ^ <<enter>> # should work (key sequence would be shorter if you have replace-regexp defined in a global keyset. (I love emacs, but vi is my tool of choice day-to-day ... much quicker .... vim is even better if you have it) HTH -Jeff __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>