unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: MelloBob <bobmellowood@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: define keyboard macro in text file
Date: Fri, 4 Feb 2011 11:06:13 -0800 (PST)	[thread overview]
Message-ID: <a3c5cf3f-2bf7-4c1f-8a0d-7ca2d8ce199d@z3g2000prz.googlegroups.com> (raw)

I auto-create some files, templates really, which I then edit with
emacs. I find that I need to create a macro which I use on the first
pass clean up just about every time I do this. So ...

Is it possible to include some text in the created file which defines
the macro? After using it the one time I'd just delete the line from
the file. If it means copying, pasting, evaluating in the lisp
buffer ... it's probably just as easy to do it from the keyboard ...
yup, the macro is very simple.

Suggestions welcome ... even one that says I'm looking at the problem
all wrong :)


             reply	other threads:[~2011-02-04 19:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-04 19:06 MelloBob [this message]
2011-02-04 19:15 ` define keyboard macro in text file Pascal J. Bourguignon
2011-02-04 23:56   ` MelloBob
2011-02-05  0:17     ` Pascal J. Bourguignon

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a3c5cf3f-2bf7-4c1f-8a0d-7ca2d8ce199d@z3g2000prz.googlegroups.com \
    --to=bobmellowood@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).