package ecaml

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

Module Ecaml.Minor_modeSource

A minor mode provides optional features that users may enable or disable independently of the choice of major mode. Minor modes can be enabled individually or in combination.

(Info-goto-node "(elisp)Minor Modes")

Sourcetype t = {
  1. function_name : Symbol.t;
  2. variable_name : Symbol.t;
}
Sourceval variable_name : t -> Symbol.t
Sourceval function_name : t -> Symbol.t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval create : ?variable_name:Symbol.t -> Symbol.t -> t
Sourceval is_enabled : t -> bool

Returns true if t is defined and enabled, and false otherwise.

Sourceval disable : t -> unit
Sourceval enable : t -> unit
Sourceval temporarily_disable : (unit, 'a) Sync_or_async.t -> t -> f:(unit -> 'a) -> 'a
Sourceval abbrev : t

(describe-variable 'abbrev-mode) (describe-function 'abbrev-mode)

Sourceval auto_fill : t

(describe-variable 'auto-fill-mode) (describe-function 'auto-fill-mode)

Sourceval goto_address : t

(describe-variable 'goto-address-mode) (describe-function 'goto-address-mode)

Sourceval read_only : t

(describe-variable 'buffer-read-only) (describe-function 'read-only-mode)

Sourceval view : t

(describe-variable 'view-mode) (describe-function 'view-mode)

Sourceval visual_line : t

(describe-variable 'visual-line-mode) (describe-function 'visual-line-mode)

Sourceval url_handler : t

(describe-variable 'url-handler-mode) (describe-function 'url-handler-mode)

Sourceval keymap : t -> Keymap.t option

Find the keymap that is active when the given minor mode is enabled, if such a keymap exists.

(describe-variable 'minor-mode-map-alist)

Sourceval keymap_exn : t -> Keymap.t
Sourceval define_minor_mode : Symbol.t -> Core.Source_code_position.t -> docstring:string -> ?define_keys:(string * Symbol.t) list -> ?mode_line:string -> global:bool -> ?initialize:(t -> unit) -> unit -> t

(describe-function 'define-minor-mode) (Info-goto-node "(elisp)Defining Minor Modes")

Additionally, each key_sequence, symbol in define_keys is added to the new minor mode's keymap.

Sourcemodule Private : sig ... end