>>> On 16 Jun 1998 17:01:29 -0500, M Maxwell (M) wrote:
M> Once again, I'm stumped with something. I've looked at the books and
M> info pages, but no luck.
M> What I need to do is insert a comment character (ex: '#') at the
M> beginning of a range of lines in a file. Basically, I'd like it to do
M> the same as this command in 'vi':
M> ESC :s/^/# /50
M> to insert a '# ' for the next 50 lines.
M> How is this done in emacs?
M> I'm looking at different modes here: C, Perl, an sh.
1) Start recording a keyboard macro. 2) type "#" at first line,
then go to start of next line. 3) end keyboard macro 4) Mark
region for next fifty lines and apply macro or press ESC 50 and
apply macro.
--
Daniel Goldin
[EMAIL PROTECTED]
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.