package chamo

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Chamo.Sourceview_rcSource

Configuration of the "sourceview" view.

Sourceval factory_name : string

Name of the view.

Sourceval rc_file : string

The user's configuration file.

Sourceval mode_rc_file : string -> string

The function to get the configuration file of a mode, from the mode name.

Sourceval local_mode_rc_file : string -> string

The function to get the local configuration file of a mode, from the mode name.

Sourceval bookmarks_rc_file : string

The bookmarks file.

Sourceval key_bindings : (Stk.Key.keystate list * string) list Ocf.conf_option

Key bindings of the view.

Sourceval filename_language_patterns : (string * string) list Ocf.conf_option

Associations between regular expressions on filenames and mime type, to get the correct language syntax highlighting.

Sourceval filename_mode_patterns : (string * string) list Ocf.conf_option

Associations between regular expressions in filenames and mode names.

Sourceval max_undo_levels : int Ocf.conf_option

Maximum undo levels.

Default wrap mode to use when creating a sourceview, if no indication is given.

Sourceval default_word_re : string

Default regexp for words.

Sourceval default_theme : string Ocf.conf_option

Default theme for sourceviews.

Sourceval read : unit -> unit

Read the configuration file.

Sourceval write : unit -> unit

Write the configuration file.

Sourceval add_sourceview_key_binding : Stk.Key.keystate list -> string -> unit

This function adds a key binding for the view, described by a combination of key hits and an associated command name.

Sourceval add_sourceview_key_binding_string : string -> string -> unit

Same as add_sourceview_key_binding but the combination of key hits is given as a string.

Sourceval create_add_sourceview_mode_binding_commands : (Stk.Key.keystate list * string) list Ocf.conf_option -> string -> (Stk.Key.keystate list -> string -> unit) * (string -> string -> unit)

This function creates, for a key bindings option and a given mode name, two functions to add a key binding to the mode, and also register a command to add a binding to the mode. The command name is called add_sourceview_mode_<mode name>_key_binding. This function uses Commands.create_add_binding_commands.

OCaml

Innovation. Community. Security.