From: fork <forkandwait@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Couple of automation questions
Date: Wed, 27 Jul 2011 16:52:35 +0000 (UTC) [thread overview]
Message-ID: <loom.20110727T184947-631@post.gmane.org> (raw)
In-Reply-To: CAGdT1go1vfxR8VpZv6qaRh_d3gFOvxaWDh+kAaZ5nhrTGCx5Vw@mail.gmail.com
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
next prev parent reply other threads:[~2011-07-27 16:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-27 5:31 Couple of automation questions C K Kashyap
2011-07-27 7:16 ` Andreas Röhler
2011-07-27 7:27 ` Teemu Likonen
2011-07-27 8:11 ` C K Kashyap
2011-07-27 8:28 ` Teemu Likonen
2011-07-27 14:26 ` Memnon Anon
2011-07-27 16:52 ` fork [this message]
2011-07-27 17:06 ` Teemu Likonen
2011-07-27 17:23 ` fork
2011-07-27 17:28 ` Andreas Röhler
2011-07-28 2:40 ` C K Kashyap
2011-07-28 6:05 ` Teemu Likonen
2011-07-28 6:56 ` Andreas Röhler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20110727T184947-631@post.gmane.org \
--to=forkandwait@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.