File: AutoIndent.html

package info (click to toggle)
ne 2.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,540 kB
  • ctags: 3,408
  • sloc: ansic: 24,666; perl: 500; makefile: 207; sh: 9
file content (57 lines) | stat: -rw-r--r-- 2,648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html lang="en">
<head>
<title>AutoIndent - ne's manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="ne's manual">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Formatting-Commands.html#Formatting-Commands" title="Formatting Commands">
<link rel="prev" href="WordWrap.html#WordWrap" title="WordWrap">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="AutoIndent"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="WordWrap.html#WordWrap">WordWrap</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Formatting-Commands.html#Formatting-Commands">Formatting Commands</a>
<hr>
</div>

<h4 class="subsection">4.8.8 AutoIndent</h4>

<p><a name="index-AutoIndent-134"></a>
Syntax: <code>AutoIndent [0|1]</code><br>
Abbreviation: <code>AI</code>

<p class="noindent">sets the auto indent flag. When this flag is true, <code>ne</code> will
automatically insert <span class="sc">tab</span>s and spaces on a new line (created by an
<code>InsertLine</code> command, or by automatic word wrapping) in such a way to
replicate the initial spaces of the previous line. Most useful for indenting
programs.

   <p>If you invoke <code>AutoIndent</code> with no arguments, it will toggle the flag. If you
specify 0 or 1, the flag will be set to false or true, respectively. A lower
case &lsquo;<samp><span class="samp">a</span></samp>&rsquo; will appear on the status bar if the flag is true.

   <p><code>AutoIndent</code> features a nice interaction with <code>Undo</code>. Whenever a
new line is created, the insertion of spaces is recorded as a separate
action in the undo buffer (with respect to the line creation). If you are
not satisfied with the indentation, just give the <code>Undo</code> command and
the indentation will disappear (but the new line will remain in place, since
its creation has been recorded as a separate action). See <a href="Undo.html#Undo">Undo</a>.

   </body></html>