yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.Config
Synopsis
data UIConfig = UIConfig {
configVtyEscDelay :: Int
configFontName :: Maybe String
configFontSize :: Maybe Int
configLeftSideScrollBar :: Bool
configAutoHideScrollBar :: Bool
configAutoHideTabBar :: Bool
configLineWrap :: Bool
configWindowFill :: Char
configTheme :: Theme
}
configStyle :: UIConfig -> UIStyle
data Config = Config {
startFrontEnd :: UIBoot
configUI :: UIConfig
startActions :: [Action]
initialActions :: [Action]
defaultKm :: KeymapSet
configInputPreprocess :: P Event Event
modeTable :: [AnyMode]
publishedActions :: Map String [Dynamic]
debugMode :: Bool
configRegionStyle :: RegionStyle
configKillringAccumulate :: Bool
bufferUpdateHandler :: [[Update] -> BufferM ()]
}
configFundamentalMode :: Config -> AnyMode
configTopLevelKeymap :: Config -> Keymap
type UIBoot = Config -> (Event -> IO ()) -> ([Action] -> IO ()) -> Editor -> IO UI
Documentation
data UIConfig Source
Constructors
UIConfig
configVtyEscDelay :: Int
configFontName :: Maybe StringFont name, for the UI that support it.
configFontSize :: Maybe IntFont size, for the UI that support it.
configLeftSideScrollBar :: BoolShould the scrollbar be shown on the left side?
configAutoHideScrollBar :: BoolHide scrollbar automatically if text fits on one page.
configAutoHideTabBar :: BoolHide the tabbar automatically if only one tab is present
configLineWrap :: BoolWrap lines at the edge of the window if too long to display.
configWindowFill :: CharThe char with which to fill empty window space. Usually '~' for vi-like editors, ' ' for everything else.
configTheme :: ThemeUI colours
configStyle :: UIConfig -> UIStyleSource
data Config Source
Configuration record. All Yi hooks can be set here.
Constructors
Config
startFrontEnd :: UIBootUI to use.
configUI :: UIConfigUI-specific configuration.
startActions :: [Action]Actions to run when the editor is started.
initialActions :: [Action]Actions to run after startup (after startActions) or reload.
defaultKm :: KeymapSetDefault keymap to use.
configInputPreprocess :: P Event Event
modeTable :: [AnyMode]List modes by order of preference.
publishedActions :: Map String [Dynamic]Actions available in the interpreter (akin to M-x in emacs)
debugMode :: BoolProduce a .yi.dbg file with a lot of debug information.
configRegionStyle :: RegionStyleSet to Exclusive for an emacs-like behaviour.
configKillringAccumulate :: BoolSet to True for an emacs-like behaviour, where all deleted text is accumulated in a killring.
bufferUpdateHandler :: [[Update] -> BufferM ()]
show/hide Instances
configFundamentalMode :: Config -> AnyModeSource
configTopLevelKeymap :: Config -> KeymapSource
type UIBoot = Config -> (Event -> IO ()) -> ([Action] -> IO ()) -> Editor -> IO UISource
Produced by Haddock version 2.6.1