Re: init.lua paths order

From: mitchell <mforal.n....at.gmail.com>
Date: Fri, 7 May 2010 11:32:01 -0700 (PDT)

Jay,

On May 5, 11:56 pm, Jay <robert.jay.go....at.gmail.com> wrote:
> was wondering if changing the paths table in init.lua, placing
> _USERHOME paths first might be a good idea (so user scripts override
> default scripts) .
>
> local paths = {
>   _USERHOME..'/?.lua',  --> this is also new too
>   _USERHOME..'/modules/?.lua',
>   _USERHOME..'/modules/?/init.lua',
>   _HOME..'/modules/?.lua',
>   _HOME..'/modules/?/init.lua',
>   package.path
>
> }

Sounds good to me. In hg (r571)

Mitchell

>
> The first path (_USERHOME..'/?.lua') is also new, and it allows me to
> keep my own .textadept/ext folder so I can easily override ext/
> keys.lua, ext/find.lua and ext/key_commands.lua (which have a few
> personal changes) without requiring me to include everything again in
> my own .textadept/init.lua.
>
> My solution here is far from optimal, but it might be a good lead
> towards making extending/overriding easier. Still pondering...
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/textadept?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "textadept" group.
To post to this group, send email to textadept.at.googlegroups.com.
To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
Received on Fri 07 May 2010 - 14:32:01 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:45:07 EST