Function: auto-composition-mode

auto-composition-mode is an interactive and byte-compiled function defined in composite.el.gz.

Signature

(auto-composition-mode &optional ARG)

Documentation

Toggle Auto Composition mode.

This is a minor mode. If called interactively, toggle the Auto-Composition 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 auto-composition-mode(var)/auto-composition-mode(fun).

The mode's hook is called both when the mode is enabled and when it is disabled.

When Auto Composition mode is enabled, text characters are automatically composed by functions registered in composition-function-table.

You can use global-auto-composition-mode to turn on Auto Composition mode in all buffers (this is the default).

Probably introduced at or before Emacs version 28.1.

Key Bindings

Aliases

toggle-auto-composition

Source Code

;; Defined in /usr/src/emacs/lisp/composite.el.gz
;;;###autoload
(define-minor-mode auto-composition-mode
  "Toggle Auto Composition mode.

When Auto Composition mode is enabled, text characters are
automatically composed by functions registered in
`composition-function-table'.

You can use `global-auto-composition-mode' to turn on
Auto Composition mode in all buffers (this is the default)."
  ;; It's defined in C, this stops the d-m-m macro defining it again.
  :variable auto-composition-mode)