License | GPL-2 |
---|---|
Maintainer | yi-devel@googlegroups.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Module exposing common user settings. Users most likely want to be starting with Yi.Config.Default.
- data Config = Config {
- startFrontEnd :: UIBoot
- configUI :: !UIConfig
- startActions :: ![Action]
- initialActions :: ![Action]
- defaultKm :: !KeymapSet
- configInputPreprocess :: !(P Event Event)
- modeTable :: ![AnyMode]
- debugMode :: !Bool
- configRegionStyle :: !RegionStyle
- configKillringAccumulate :: !Bool
- configCheckExternalChangesObsessively :: !Bool
- bufferUpdateHandler :: !(Seq (Seq Update -> BufferM ()))
- layoutManagers :: ![AnyLayoutManager]
- configVars :: !DynamicState
- data UIConfig = UIConfig {
- configFontName :: Maybe String
- configFontSize :: Maybe Int
- configScrollStyle :: Maybe ScrollStyle
- configScrollWheelAmount :: Int
- configLeftSideScrollBar :: Bool
- configAutoHideScrollBar :: Bool
- configAutoHideTabBar :: Bool
- configLineWrap :: Bool
- configCursorStyle :: CursorStyle
- configWindowFill :: Char
- configTheme :: Theme
- type UIBoot = Config -> ([Event] -> IO ()) -> ([Action] -> IO ()) -> Editor -> IO (UI Editor)
- data CursorStyle
- module Yi.Config.Lens
- configStyle :: UIConfig -> UIStyle
- configFundamentalMode :: Config -> AnyMode
- configTopLevelKeymap :: Config -> Keymap
Documentation
Configuration record. All Yi hooks can be set here.
Config | |
|
UIConfig | |
|
type UIBoot = Config -> ([Event] -> IO ()) -> ([Action] -> IO ()) -> Editor -> IO (UI Editor) Source #
data CursorStyle Source #
When should we use a "fat" cursor (i.e. 2 pixels wide, rather than 1)? Fat cursors have only been implemented for the Pango frontend.
module Yi.Config.Lens
configStyle :: UIConfig -> UIStyle Source #
configTopLevelKeymap :: Config -> Keymap Source #