Module Ecaml.Major_mode

Major modes specialize Emacs for editing particular kinds of text. Each buffer has only one major mode at a time.

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

type t
include sig ... end
val sexp_of_t : t ‑> Sexplib.Sexp.t
include Core_kernel.Equal.S with type t := t
type t
val change_command : t ‑> Symbol.t

Accessors

val keymap : t ‑> Keymap.t
val syntax_table : t ‑> Syntax_table.t
val create : change_command:Symbol.t ‑> t
val fundamental : t

(describe-function 'fundamental-mode)(Info-goto-node "(elisp)Major Modes")

val prog : t

(describe-function 'prog-mode)(Info-goto-node "(elisp)Basic Major Modes")

val special : t

(describe-function 'special-mode)(Info-goto-node "(elisp)Basic Major Modes")

val text : t

(describe-function 'text-mode)(Info-goto-node "(elisp)Basic Major Modes")

val define_derived_mode : ?⁠parent:t ‑> Core_kernel.Source_code_position.t ‑> change_command:Symbol.t ‑> docstring:string ‑> initialize:(unit ‑> unit) ‑> mode_line:string ‑> t

(describe-function 'define-derived-mode)(Info-goto-node "(elisp)Derived Modes")