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