From: MelloBob <bobmellowood@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: define keyboard macro in text file
Date: Fri, 4 Feb 2011 15:56:40 -0800 (PST) [thread overview]
Message-ID: <9744aca0-df0f-45fa-8b3f-da95787c81b6@h19g2000prh.googlegroups.com> (raw)
In-Reply-To: 87aaib8vbz.fsf@kuiper.lan.informatimago.com
> > 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.
>
> This is possible, but it's dangerous (think virus). Emacs warns when
> you do that, which is molesting.
And, if I want to live dangerously ... what is the magical
incantation?
> What you could do, is to define a mode specific to edit your template
> files, along with a specific file extension. Then you can do any
> processing you want when the mode is activated.
Yes, that might be the easiest in the long run.
Thanks.
next prev parent reply other threads:[~2011-02-04 23:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-04 19:06 define keyboard macro in text file MelloBob
2011-02-04 19:15 ` Pascal J. Bourguignon
2011-02-04 23:56 ` MelloBob [this message]
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=9744aca0-df0f-45fa-8b3f-da95787c81b6@h19g2000prh.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).