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

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

Re: define keyboard macro in text file


From: MelloBob
Subject: Re: define keyboard macro in text file
Date: Fri, 4 Feb 2011 15:56:40 -0800 (PST)
User-agent: G2/1.0

> > 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.




reply via email to

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