
JP, I deleted the lot and re-installed. make emacs then worked. Three things. 1. ~/usr/bin isn't on my path. Clearly I can fix. 2. Where should YiConfig.hs live? I know it's in examples but I don't want to copy it into every directory.
dom@heisenberg:~> ~/usr/bin/yi test.hs
<command line>: Could not find module `YiConfig': Use -v to see a list of the files searched for. error: YiConfig not loaded
* "*messages*" L5 C0 100%
- "test.hs" L1 C0 0% error: YiConfig not loaded
dom@heisenberg:~> ls yi/yi/examples/ -ltr total 24 -rw-r--r-- 1 dom users 367 2007-04-09 07:17 YiConfig.hs -rw-r--r-- 1 dom users 1148 2007-04-09 07:17 DynamicReconf.hs -rw-r--r-- 1 dom users 276 2007-04-09 07:17 HaskellVim.hs
3. Even when YiConfig.hs is there, I get the following error and can't do any editing
dom@heisenberg:~/yi/yi/examples> ~/usr/bin/yi test.hs
User configuration finished.
error: Keymap not defined, type 'q' to quit. README file may help you.
Dominic.

Dominic Steinitz
1. ~/usr/bin isn't on my path. Clearly I can fix.
You can install the cabal packages for everyone (ie. dropping --user)
2. Where should YiConfig.hs live? I know it's in examples but I don't want to copy it into every directory.
It should live in ~/.yi/YiConfig.hs
3. Even when YiConfig.hs is there, I get the following error and can't do any editing
Here is a sample YiConfig.hs file: -- Don't run with --as=..., that will overwrite the keymap set here. module YiConfig (yiMain) where import Yi.Yi import Yi.Editor import Yi.Keymap.Emacs import Control.Monad.Trans import Yi.Buffer yiMain :: EditorM () yiMain = do changeKeymapE myKeymap msgE "User configuration successful." myKeymap x = setSynE "haskell" : runProcess normalKeymap x ---------- Cheers, JP.
participants (2)
-
Dominic Steinitz
-
Jean-Philippe Bernardy