Function: combobulate-ocaml-interface-minor-mode
combobulate-ocaml-interface-minor-mode is a natively compiled function
defined in combobulate-ocaml.el.
Signature
(combobulate-ocaml-interface-minor-mode &optional ARG)
Documentation
Combobulate minor mode for the ocaml-interface tree-sitter language.
This is a minor mode. If called interactively, toggle the
Combobulate-Ocaml-Interface minor mode mode. If the prefix argument
is positive, enable the mode, and if it is zero or negative, disable the
mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate the variable combobulate-ocaml-interface-minor-mode(var)/combobulate-ocaml-interface-minor-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Source Code
;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-ocaml.el
;; NOTE: OCaml has two tree-sitter grammars: 'ocaml' for .ml files and
;; 'ocaml-interface' for .mli files.
;; We register both as separate "languages" in Combobulate terms with their own
;; rule sets. Interface files (.mli) have a more restricted set of top-level
;; constructs (specifications rather than implementations).
(define-combobulate-language
:name ocaml-interface
:major-modes (caml-mode tuareg-interface-mode neocaml-interface-mode)
:custom combobulate-ocaml-interface-definitions
:setup-fn combobulate-ocaml-setup)