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: Pascal J. Bourguignon
Subject: Re: define keyboard macro in text file
Date: Sat, 05 Feb 2011 01:17:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

MelloBob <bobmellowood@gmail.com> writes:

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

I gave the indication.  Putting a File Local Variable named eval.

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

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


reply via email to

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