On Wed, Nov 3, 2010 at 3:40 PM, Thomas <[email protected]> wrote:

> One question in particular.  I defined some function.  How can I get
> access to that, so that I can do "M-x myFunction"?  I found some hint
> from 2008 that I should look into the Yi.Yi module... but couldn't
> find a Yi.Yi module.  I guess that hint is old, too.

Edit  ~/.yi/local/Env.hs and put your function there.

example:

module Env where

import Yi

hello :: EditorM Int
hello = return 123

Look into src/Yi/Eval.hs to understand what's going on.

> I also tried to bind M-r to some function.  It complies, but I must
> nevertheless do something wrong, as M-r is still not recognised as a
> valid key.
>
> I attached my ~/.yi/yi.hs below.
>
> I can remember that when I heard from Yi the first time, one of the
> selling points was, that you could recompile your configuration file
> on the fly -- just the same way as it works with Xmonad.  I love this
> feature in Xmonad, but I can't find a "recompile"-function or anything
> similar in the Yi-index on hackage.  Is it called something different?

M-x reload

It seems to be broken now for some reason though.

> Thanks for your help.

Hope that helps!
Unfortunately I have next to no time to help with Yi at the moment.

Cheers,
JP.

-- 
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel

Reply via email to