Function: TeX-electric-macro

TeX-electric-macro is an interactive and byte-compiled function defined in tex.el.

Signature

(TeX-electric-macro)

Documentation

Insert TeX macro with completion.

AUCTeX knows of some macros, and may query for extra arguments. Space will complete and exit.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-electric-macro ()
  "Insert TeX macro with completion.

AUCTeX knows of some macros, and may query for extra arguments.
Space will complete and exit."
  (interactive)
  (cond ((eq (preceding-char) last-command-event)
         (call-interactively #'self-insert-command))
        ((eq (preceding-char) ?.)
         (let ((TeX-default-macro " ")
               (minibuffer-local-completion-map TeX-electric-macro-map))
           (call-interactively #'TeX-insert-macro)))
        (t
         (let ((minibuffer-local-completion-map TeX-electric-macro-map))
           (call-interactively #'TeX-insert-macro)))))