yi.hs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import Yi
  2. -- Import the desired keymap "template":
  3. import Yi.Keymap.Emacs (keymap)
  4. -- import Yi.Keymap.Cua (keymap)
  5. -- import Yi.Keymap.Vim (keymapSet)
  6. -- Import the desired UI as needed.
  7. -- Some are not complied in, so we import none here.
  8. import Yi.UI.Vty (start)
  9. -- import Yi.UI.Pango (start)
  10. myConfig :: Config
  11. myConfig = defaultEmacsConfig -- replace with defaultVimConfig or defaultCuaConfig
  12. defaultUIConfig :: UIConfig
  13. defaultUIConfig = configUI myConfig
  14. -- Change the below to your needs, following the explanation in comments. See
  15. -- module Yi.Config for more information on configuration. Other configuration
  16. -- examples can be found in the examples directory. You can also use or copy
  17. -- another user configuration, which can be found in modules Yi.Users.*
  18. main :: IO ()
  19. main = yi $ myConfig
  20. {
  21. -- Keymap Configuration
  22. defaultKm = defaultKm myConfig,
  23. -- UI Configuration
  24. -- Override the default UI as such:
  25. startFrontEnd = startFrontEnd myConfig,
  26. -- thnx ethercrow -- Yi.UI.Vty.start -- for Vty
  27. -- (can be overridden at the command line)
  28. -- Options:
  29. configUI = defaultUIConfig
  30. {
  31. configFontSize = Nothing,
  32. -- 'Just 10' for specifying the size.
  33. configTheme = configTheme defaultUIConfig,
  34. -- darkBlueTheme -- Change the color scheme here.
  35. configWindowFill = ' '
  36. -- '~' -- Typical for Vim
  37. }
  38. }