Skip to content

Instantly share code, notes, and snippets.

@lancelet
Created October 20, 2014 04:24
Show Gist options
  • Save lancelet/a26fde0c72c87336a4b9 to your computer and use it in GitHub Desktop.
Save lancelet/a26fde0c72c87336a4b9 to your computer and use it in GitHub Desktop.
yi.hs configuration (modeline doesn't seem to cooperate)
-- in ~/.config/yi/yi.hs
import Data.Monoid ((<>))
import Yi (Attributes(..), Config, UIConfig(..), configUI, defaultEmacsConfig, emptyAttributes, override, yi)
import Yi.Style (Color(..), UIStyle(..), grey, withBg, withFg)
import Yi.Style.Library (defaultTheme)
config :: Config
config = defaultEmacsConfig
{ configUI = (configUI defaultEmacsConfig)
{ configTheme = defaultTheme `override` \super _ -> super
{ modelineAttributes = emptyAttributes { background = grey }
, modelineFocusStyle = withBg grey <> withFg (RGB 50 100 50)
}
}
}
main :: IO ()
main = yi $ config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment