Module Ecaml__.Minor_mode
type t={function_name : Ecaml.Symbol.t;variable_name : Ecaml.Symbol.t;}
val variable_name : t -> Ecaml.Symbol.tval function_name : t -> Ecaml.Symbol.t
module Fields : sig ... endval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val is_enabled : t -> boolReturns true if
tis defined and enabled, and false otherwise.
val disable : t -> unitval enable : t -> unitval temporarily_disable : t -> f:(unit -> unit) -> unitval abbrev : t(describe-variable 'abbrev-mode)(describe-function 'abbrev-mode)
val goto_address : t(describe-variable 'goto-address-mode)(describe-function 'goto-address-mode)
val read_only : t(describe-variable 'buffer-read-only)(describe-function 'read-only-mode)
val view : t(describe-variable 'view-mode)(describe-function 'view-mode)
val visual_line : t(describe-variable 'visual-line-mode)(describe-function 'visual-line-mode)
val url_handler : t(describe-variable 'url-handler-mode)(describe-function 'url-handler-mode)
val keymap : t -> Ecaml.Keymap.t optionFind the keymap that is active when the given minor mode is enabled, if such a keymap exists.
(describe-variable 'minor-mode-map-alist)
val keymap_exn : t -> Ecaml.Keymap.tval define_minor_mode : Ecaml.Symbol.t -> Core_kernel.Source_code_position.t -> docstring:string -> ?define_keys:(string * Ecaml.Symbol.t) list -> mode_line:string -> global:bool -> ?initialize:(unit -> unit) -> unit -> t(describe-function 'define-minor-mode)(Info-goto-node "(elisp)Defining Minor Modes")Additionally, each
key_sequence, symbolindefine_keysis added to the new minor mode's keymap.
module Private : sig ... end