summaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 30255ba..321f23f 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -2,8 +2,26 @@
module Main (main) where
+import Control.Monad.State
+
import Yi.Boot (yiDriver')
import Yi.Config.Default (defaultConfig)
+import Yi.Config.Default.Vty
+import Yi.Config.Default.Emacs
+import Yi.Config.Default.HaskellMode
+import Yi.Config.Default.JavaScriptMode
+import Yi.Config.Default.MiscModes
+import Yi.Config.Simple.Types
+
main :: IO ()
-main = yiDriver' True defaultConfig
+main = do
+ cfg <- execStateT configure defaultConfig
+ yiDriver' True cfg
+ where
+ configure = runConfigM $ do
+ configureVty
+ configureEmacs
+ configureHaskellMode
+ configureJavaScriptMode
+ configureMiscModes \ No newline at end of file