]> git.eshelyaron.com Git - emacs.git/commitdiff
* doc/emacs/programs.texi (Misc for Programs): Mention electric-layout-mode.
authorGlenn Morris <rgm@gnu.org>
Fri, 10 Feb 2012 02:44:27 +0000 (21:44 -0500)
committerGlenn Morris <rgm@gnu.org>
Fri, 10 Feb 2012 02:44:27 +0000 (21:44 -0500)
doc/emacs/ChangeLog
doc/emacs/programs.texi

index ebed400fd6ca2d45f5c93951703089d98db13773..3c4ee4181e4f76baa224af32c648cca9c78313d1 100644 (file)
@@ -1,7 +1,11 @@
+2012-02-10  Glenn Morris  <rgm@gnu.org>
+
+       * programs.texi (Misc for Programs): Mention electric-layout-mode.
+
 2012-02-09  Glenn Morris  <rgm@gnu.org>
 
-       * buffers.texi (Misc Buffer): M-x info does not seem to require a buffer
-       switch after M-x rename-uniquely.
+       * buffers.texi (Misc Buffer): M-x info does not seem to require a
+       buffer switch after M-x rename-uniquely.
 
        * trouble.texi (Checklist): Mention C-c m in report-emacs-bug.
 
index 8ba9b78603a8cf07f79aa6441d1ae1cfad9ecd3d..346e2fff5ff49a5509cd1da2aa7231180aeb928d 100644 (file)
@@ -1415,6 +1415,12 @@ paragraph commands to work on.  Auto Fill mode, if enabled in a
 programming language major mode, indents the new lines which it
 creates.
 
+@findex electric-layout-mode
+  Electric Layout mode (@kbd{M-x electric-layout-mode}) is a global
+minor mode that automatically inserts newlines when you type certain
+characters; for example, @samp{@{}, @samp{@}} and @samp{;} in Javascript
+mode.
+
   Apart from Hideshow mode (@pxref{Hideshow}), another way to
 selectively display parts of a program is to use the selective display
 feature (@pxref{Selective Display}).  Programming modes often also