help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Couple of automation questions


From: fork
Subject: Re: Couple of automation questions
Date: Wed, 27 Jul 2011 16:52:35 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

C K Kashyap <ckkashyap <at> gmail.com> writes:

> Thanks Teemu ... I am aware of elisp. What I am looking for are general tips
on how one goes about actually writing them in real time ( while editing some
text) ... for example, if I do a kill and want to yank 10 times, What I'd do is
M-:(dotimes (i 10) (yank))
> 
> but is that the recommended way or would writing the script in the main buffer
and executing it with C-x-e better ... or is there an even better way?

What I do is to improvise a macro by C-x-( etc.  Then you can "M-x
name-last-kbd-macro" to give it an identifier "M-x insert-kbd-macro" put the
macro in your .emacs file for later.

sed + awk + tr + shell scripting might be a better fit for automatically
beautifying log files though




reply via email to

[Prev in Thread] Current Thread [Next in Thread]