Variable: ConTeXt-numbered-section-hook

ConTeXt-numbered-section-hook is a customizable variable defined in context.el.

Value

(ConTeXt-numbered-section-heading
 ConTeXt-section-title
 ConTeXt-section-ref
 ConTeXt-section-section)

Documentation

List of hooks to run when a new section is inserted.

The following variables are set before the hooks are run

ConTeXt-level - numeric section level, see the documentation of
                      ConTeXt-section.
ConTeXt-name - name of the sectioning command, derived from
                      ConTeXt-level.
ConTeXt-title - The title of the section, default to an empty
                      string.
ConTeXt-reference - Comma separated list of reference. ConTeXt-done-mark - Position of point afterwards, default nil
                      (meaning end).

The following standard hooks exist -

ConTeXt-numbered-section-heading: Query the user about the name of the sectioning command. Modifies ConTeXt-level and ConTeXt-name.

ConTeXt-section-title: Query the user about the title of the section. Modifies ConTeXt-title.

ConTeXt-section-section: Insert ConTeXt section command according to ConTeXt-name, ConTeXt-title, and ConTeXt-reference. If ConTeXt-title is an empty string, ConTeXt-done-mark will be placed at the point they should be inserted.

ConTeXt-section-ref: Query the user about a reference for this section command. Modifies ConTeXt-reference.

To get a full featured ConTeXt-section command, insert

 (setq ConTeXt-numbered-section-hook
                         '(ConTeXt-numbered-section-heading
                                 ConTeXt-section-title
                                 ConTeXt-section-ref
                                 ConTeXt-section-section))

in your init file such as .emacs.d/init.el or .emacs.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/context.el
;;; Section Hooks.

(defcustom ConTeXt-numbered-section-hook
  '(ConTeXt-numbered-section-heading
    ConTeXt-section-title
    ConTeXt-section-ref
    ConTeXt-section-section)
  "List of hooks to run when a new section is inserted.

The following variables are set before the hooks are run

`ConTeXt-level'     - numeric section level, see the documentation of
                      `ConTeXt-section'.
`ConTeXt-name'      - name of the sectioning command, derived from
                      `ConTeXt-level'.
`ConTeXt-title'     - The title of the section, default to an empty
                      string.
`ConTeXt-reference' - Comma separated list of reference.
`ConTeXt-done-mark' - Position of point afterwards, default nil
                      (meaning end).

The following standard hooks exist -

`ConTeXt-numbered-section-heading': Query the user about the name
of the sectioning command.  Modifies `ConTeXt-level' and
`ConTeXt-name'.

`ConTeXt-section-title': Query the user about the title of the
section.  Modifies `ConTeXt-title'.

`ConTeXt-section-section': Insert ConTeXt section command according
to `ConTeXt-name', `ConTeXt-title', and `ConTeXt-reference'.  If
`ConTeXt-title' is an empty string, `ConTeXt-done-mark' will be
placed at the point they should be inserted.

`ConTeXt-section-ref': Query the user about a reference for this
section command.  Modifies `ConTeXt-reference'.

To get a full featured `ConTeXt-section' command, insert

 (setq ConTeXt-numbered-section-hook
                         \\='(ConTeXt-numbered-section-heading
                                 ConTeXt-section-title
                                 ConTeXt-section-ref
                                 ConTeXt-section-section))

in your init file such as .emacs.d/init.el or .emacs."
  :group 'ConTeXt-macro
  :type 'hook
  :options
  '(ConTeXt-numbered-section-heading
    ConTeXt-section-title
    ConTeXt-section-ref
    ConTeXt-section-section))