From e74e58c91f18d5657c3a9df67ab3861eaec9d2d0 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 8 Feb 2012 00:00:03 -0800 Subject: * doc/emacs/text.texi (LaTeX Editing): Mention latex-electric-env-pair-mode. * etc/NEWS: Related markup. --- doc/emacs/ChangeLog | 4 ++++ doc/emacs/text.texi | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'doc/emacs') diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index a5a54dad049..9f51d9bbde6 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,3 +1,7 @@ +2012-02-08 Glenn Morris + + * text.texi (LaTeX Editing): Mention latex-electric-env-pair-mode. + 2012-02-07 Glenn Morris * files.texi (File Conveniences): Mention ImageMagick images. diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index 591ca80f27c..b4310d6372f 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi @@ -1591,12 +1591,15 @@ variable @code{latex-block-names}. @findex tex-close-latex-block @kindex C-c C-e @r{(La@TeX{} mode)} +@findex latex-electric-env-pair-mode In La@TeX{} input, @samp{\begin} and @samp{\end} tags must balance. You can use @kbd{C-c C-e} (@code{tex-close-latex-block}) to insert an @samp{\end} tag which matches the last unmatched @samp{\begin}. It also indents the @samp{\end} to match the corresponding @samp{\begin}, and inserts a newline after the @samp{\end} tag if point is at the -beginning of a line. +beginning of a line. The minor mode @code{latex-electric-env-pair-mode} +automatically inserts an @samp{\end} or @samp{\begin} tag for you +when you type the corresponding one. @node TeX Print @subsection @TeX{} Printing Commands -- cgit v1.2.1