Hi,

Add the following to your ~/.factor-rc:

USING: namespaces sequences vocabs.loader ;
"/path/to/my/source/" vocab-roots get push

Then, create a file,

/path/to/my/source/hello/hello.factor

IN: hello
USING: io ;

: hello "Hello world" print ;

MAIN: hello

Then in your listener,

USE: hello

Will load it, and refresh-all will pick it up.

Also refresh-all is slow right now and I'll fix this later.

Slava

On Apr 1, 2008, at 7:26 AM, Nikhil Marathe wrote:

> Hi,
>
> I'm having a very painful editing experience in factor.
> Every time i start a session, I've to type in the path for all my  
> sources, then call edit on each of them and say "pathname reload"  
> when i save it.
>
> I read on the list, that if I just save my sources in extra/ and use  
> USING: then it becomes simple. But what if my sources are in another  
> directory, say ~/factor.
> How do I make factor remember my sources and the associated  
> vocabularies. And refresh-all doesn't seem to refresh my modified  
> files either, how do I do that?
>
> Note: I'm using gvim.
>
> Thanks,
>
> Nikhil  
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to