On Fri, 15 Jun 2012 10:47:23 -0500 Ron Parker <rdpar...@gmail.com> wrote: 

RP> On Fri, Jun 15, 2012 at 9:57 AM, Marco Marongiu <brontoli...@gmail.com> 
wrote:
>> I found that having the promises laid out in normal order in the bundles
>> can help a lot in understanding how things actually go on when the
>> policy is run.
>> 
>> It would be nice if we had a key combination that, once pressed, detects
>> the bundle the cursor is in, and sets out the correspondent promises.
>> E.g., in an agent bundle it would produce something like:

RP> This is really orthogonal to cfengine-mode.  A number of emacs
RP> packages support the functionality you are seeking including skeleton,
RP> auto-insert, yasnippet, srecode. See
RP> http://www.emacswiki.org/emacs/CategoryTemplates lists most of them,
RP> however auto-insert is conspicuously absent,
RP> http://www.emacswiki.org/emacs/AutoInsertMode.

I thought about it and agree with Ron.  I personally use skeleton the
most but the others Ron mentioned are good too.  That template could
live in cfengine-mode itself, but I don't think we want to tie it any
deeper to the parser state (trust me, you don't want to know about the
Emacs parser states :)

Marco and others, do you want to suggest some good blank templates for
the various bundles and bodies?  I'll take care of integrating them with
cfengine-mode.el.  They'll be in the menus somewhere.

Thanks
Ted
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to