It's not possible to do what you're trying to do yet (although we are
not very far from being able to).
If you want to make a function accessible to M-x ..., you have to
publish it explicitly. See the end of Yi.Yi module.

Cheers,
-- JP

On Thu, May 8, 2008 at 1:20 PM, Alexandre Russel <[EMAIL PROTECTED]> wrote:
>
>  this is my YiConfig.hs:
>
>  -- Don't run with --as=..., that will overwrite the keymap set here.
>
>  module YiConfig (yiMain, helloWorld) where
>
>  import Yi.Yi
>  import Yi.Editor
>  import Yi.Keymap.Emacs
>  import Control.Monad.Trans
>  import Yi.Buffer
>
>  yiMain :: YiM ()
>  yiMain = do
>   changeKeymapE myKeymap
>
>   msgE "User configuration successful."
>
>
>  -- I prefer to use Emacs keymap, with haskell hilight in every buffer.
>  myKeymap = do write $ setSyntaxB "haskell"
>               keymap
>
>  helloWorld::YiM()
>  hellowWorld = do
>   withBuffer $ insertN "Hello, world!"
>
>  I was expecting to be able to "M-x helloWorld" but the function is not
>  defined.
>  (I restarted yi after changing YiConfig.hs).
>
>  Another question: I want to use yi to do Hutton's book exercise. In
>  emacs, I use a file to write the code and eshell to start ghci, load the
>  file, and interact with the defined function. Is there a way to do all
>  this inside yi ?
>
>  Alex
>
>  (thanks for the previous answer, somehow I can't post reply  on the web
>  and I am not receiving the answer by mail)
>
>  >
>

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

Reply via email to