Re: global snippets

From: Robert <ro....at.web.de>
Date: Sun, 21 Mar 2010 04:04:47 -0700 (PDT)

On Mar 21, 2:04 am, mitchell <mforal.n....at.gmail.com> wrote:
> Martin,
>
> > Is there a way to have global snippets (independent of specific
> > lexers)?
> > E.g. Brians licence-snippets from his python module would be useful to
> > have always at one's fingertips.
>
> In your ~/.textadept/init.lua:
>
> _G.snippets.global = "this snippet is global"
> _G.snippets.global2 = "this is another global snippet"
>
> See the top of modules/textadept/lsnippets.lua for more examples.
>
> I suppose I'll have some cries for a ~/.textadept/snippets.lua file
> that should be loaded... ;)

Yes! :-)

- Robert
Received on Sun 21 Mar 2010 - 07:04:47 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:40:30 EST