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