Re: global snippets

From: mitchell <mforal.n....at.gmail.com>
Date: Sat, 20 Mar 2010 18:04:42 -0700 (PDT)

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

Mitchell

>
> Regards,
> Martin
Received on Sat 20 Mar 2010 - 21:04:42 EDT

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