~ubuntu-branches/debian/wheezy/nano/wheezy

« back to all changes in this revision

Viewing changes to doc/man/nanorc.5.html

Tags: upstream-1.3.11
ImportĀ upstreamĀ versionĀ 1.3.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!-- Creator     : groff version 1.19.1 -->
2
 
<!-- CreationDate: Fri Dec 23 10:56:43 2005 -->
 
1
<!-- Creator     : groff version 1.19.2 -->
 
2
<!-- CreationDate: Thu Mar 30 01:48:25 2006 -->
3
3
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
4
4
"http://www.w3.org/TR/html4/loose.dtd">
5
5
<html>
7
7
<meta name="generator" content="groff -Thtml, see www.gnu.org">
8
8
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
9
9
<meta name="Content-Style" content="text/css">
 
10
<style type="text/css">
 
11
       p     { margin-top: 0; margin-bottom: 0; }
 
12
       pre   { margin-top: 0; margin-bottom: 0; }
 
13
       table { margin-top: 0; margin-bottom: 0; }
 
14
</style>
10
15
<title>NANORC</title>
 
16
 
11
17
</head>
12
18
<body>
13
19
 
14
20
<h1 align=center>NANORC</h1>
 
21
 
15
22
<a href="#NAME">NAME</a><br>
16
23
<a href="#DESCRIPTION">DESCRIPTION</a><br>
17
24
<a href="#OPTIONS">OPTIONS</a><br>
20
27
<a href="#AUTHOR">AUTHOR</a><br>
21
28
 
22
29
<hr>
 
30
 
 
31
 
23
32
<a name="NAME"></a>
24
33
<h2>NAME</h2>
25
 
<!-- INDENTATION -->
26
 
<table width="100%" border=0 rules="none" frame="void"
27
 
       cols="2" cellspacing="0" cellpadding="0">
28
 
<tr valign="top" align="left">
29
 
<td width="11%"></td>
30
 
<td width="89%">
31
 
<p>nanorc &minus; GNU nano&rsquo;s rcfile</p>
32
 
</td>
33
 
</table>
 
34
 
 
35
 
 
36
<p style="margin-left:11%; margin-top: 1em">nanorc &minus;
 
37
GNU nano&rsquo;s rcfile</p>
 
38
 
34
39
<a name="DESCRIPTION"></a>
35
40
<h2>DESCRIPTION</h2>
36
 
<!-- INDENTATION -->
37
 
<table width="100%" border=0 rules="none" frame="void"
38
 
       cols="2" cellspacing="0" cellpadding="0">
39
 
<tr valign="top" align="left">
40
 
<td width="11%"></td>
41
 
<td width="89%">
42
 
<p>This manual page documents GNU <b>nano</b>&rsquo;s
43
 
rcfile.</p>
44
 
<!-- INDENTATION -->
45
 
<p><b>nano</b> is a small, free and friendly editor which
46
 
aims to replace Pico, the default editor included in the
47
 
non-free Pine package. Rather than just copying Pico&rsquo;s
48
 
look and feel, <b>nano</b> also implements some missing (or
49
 
disabled by default) features in Pico, such as &quot;search
50
 
and replace&quot; and &quot;go to line number&quot;.</p>
51
 
<!-- INDENTATION -->
52
 
<p>The <i>nanorc</i> file contains the default settings for
 
41
 
 
42
 
 
43
<p style="margin-left:11%; margin-top: 1em">This manual
 
44
page documents GNU <b>nano</b>&rsquo;s rcfile.</p>
 
45
 
 
46
<p style="margin-left:11%; margin-top: 1em"><b>nano</b> is
 
47
a small, free and friendly editor which aims to replace
 
48
Pico, the default editor included in the non-free Pine
 
49
package. Rather than just copying Pico&rsquo;s look and
 
50
feel, <b>nano</b> also implements some missing (or disabled
 
51
by default) features in Pico, such as &quot;search and
 
52
replace&quot; and &quot;go to line number&quot;.</p>
 
53
 
 
54
<p style="margin-left:11%; margin-top: 1em">The
 
55
<i>nanorc</i> file contains the default settings for
53
56
<b>nano</b>. During startup, <b>nano</b> will first read its
54
57
system-wide settings from <i>SYSCONFDIR/nanorc</i>, and then
55
58
user-specific settings from <i>~/.nanorc</i>.</p>
56
 
</td>
57
 
</table>
 
59
 
58
60
<a name="OPTIONS"></a>
59
61
<h2>OPTIONS</h2>
60
 
<!-- INDENTATION -->
61
 
<table width="100%" border=0 rules="none" frame="void"
62
 
       cols="2" cellspacing="0" cellpadding="0">
63
 
<tr valign="top" align="left">
64
 
<td width="11%"></td>
65
 
<td width="89%">
66
 
<p>The configuration file accepts a series of
67
 
&quot;set&quot; and &quot;unset&quot; commands, which can be
68
 
used to configure nano on startup without using the
69
 
command-line options. Additionally, the &quot;syntax&quot;,
70
 
&quot;color&quot;, and &quot;icolor&quot; keywords are used
71
 
to define syntax highlighting rules for different text
72
 
patterns. GNU nano will read one command per line.</p>
73
 
<!-- INDENTATION -->
74
 
<p>Options in rcfiles take precedence over nano&rsquo;s
75
 
defaults, and command line options override rcfile
76
 
settings.</p>
77
 
<!-- INDENTATION -->
78
 
<p>Options are unset by default, except for options that
79
 
take an argument.</p>
80
 
<!-- INDENTATION -->
81
 
<p>The supported commands and arguments are:</p>
82
 
</td>
83
 
</table>
84
 
<!-- INDENTATION -->
85
 
<table width="100%" border=0 rules="none" frame="void"
86
 
       cols="2" cellspacing="0" cellpadding="0">
87
 
<tr valign="top" align="left">
88
 
<td width="11%"></td>
89
 
<td width="89%">
90
 
<p><b>set/unset autoindent</b></p></td>
91
 
</table>
92
 
<!-- INDENTATION -->
93
 
<table width="100%" border=0 rules="none" frame="void"
94
 
       cols="2" cellspacing="0" cellpadding="0">
95
 
<tr valign="top" align="left">
96
 
<td width="15%"></td>
97
 
<td width="85%">
98
 
<p>Use auto-indentation.</p>
99
 
</td>
100
 
</table>
101
 
<!-- INDENTATION -->
102
 
<table width="100%" border=0 rules="none" frame="void"
103
 
       cols="2" cellspacing="0" cellpadding="0">
104
 
<tr valign="top" align="left">
105
 
<td width="11%"></td>
106
 
<td width="89%">
107
 
<p><b>set/unset backup</b></p></td>
108
 
</table>
109
 
<!-- INDENTATION -->
110
 
<table width="100%" border=0 rules="none" frame="void"
111
 
       cols="2" cellspacing="0" cellpadding="0">
112
 
<tr valign="top" align="left">
113
 
<td width="15%"></td>
114
 
<td width="85%">
115
 
<p>Create backup files in <i>filename~</i>.</p>
116
 
</td>
117
 
</table>
118
 
<!-- INDENTATION -->
119
 
<table width="100%" border=0 rules="none" frame="void"
120
 
       cols="2" cellspacing="0" cellpadding="0">
121
 
<tr valign="top" align="left">
122
 
<td width="11%"></td>
123
 
<td width="89%">
124
 
<p><b>set backupdir</b> <i>directory</i></p></td>
125
 
</table>
126
 
<!-- INDENTATION -->
127
 
<table width="100%" border=0 rules="none" frame="void"
128
 
       cols="2" cellspacing="0" cellpadding="0">
129
 
<tr valign="top" align="left">
130
 
<td width="15%"></td>
131
 
<td width="85%">
132
 
<p>Set the directory where <b>nano</b> puts unique backup
133
 
files if file backups are enabled.</p>
134
 
</td>
135
 
</table>
136
 
<!-- INDENTATION -->
137
 
<table width="100%" border=0 rules="none" frame="void"
138
 
       cols="2" cellspacing="0" cellpadding="0">
139
 
<tr valign="top" align="left">
140
 
<td width="11%"></td>
141
 
<td width="89%">
142
 
<p><b>set/unset backwards</b></p></td>
143
 
</table>
144
 
<!-- INDENTATION -->
145
 
<table width="100%" border=0 rules="none" frame="void"
146
 
       cols="2" cellspacing="0" cellpadding="0">
147
 
<tr valign="top" align="left">
148
 
<td width="15%"></td>
149
 
<td width="85%">
150
 
<p>Do backwards searches by default.</p>
151
 
</td>
152
 
</table>
153
 
<!-- INDENTATION -->
154
 
<table width="100%" border=0 rules="none" frame="void"
155
 
       cols="2" cellspacing="0" cellpadding="0">
156
 
<tr valign="top" align="left">
157
 
<td width="11%"></td>
158
 
<td width="89%">
159
 
<p><b>set brackets</b> <i>string</i></p></td>
160
 
</table>
161
 
<!-- INDENTATION -->
162
 
<table width="100%" border=0 rules="none" frame="void"
163
 
       cols="2" cellspacing="0" cellpadding="0">
164
 
<tr valign="top" align="left">
165
 
<td width="15%"></td>
166
 
<td width="85%">
167
 
<p>Set the characters treated as closing brackets. They
168
 
cannot contain blank characters. Only closing punctuation,
169
 
optionally followed by closing brackets, can end
170
 
sentences.</p>
171
 
</td>
172
 
</table>
173
 
<!-- INDENTATION -->
174
 
<table width="100%" border=0 rules="none" frame="void"
175
 
       cols="2" cellspacing="0" cellpadding="0">
176
 
<tr valign="top" align="left">
177
 
<td width="11%"></td>
178
 
<td width="89%">
179
 
<p><b>set/unset casesensitive</b></p></td>
180
 
</table>
181
 
<!-- INDENTATION -->
182
 
<table width="100%" border=0 rules="none" frame="void"
183
 
       cols="2" cellspacing="0" cellpadding="0">
184
 
<tr valign="top" align="left">
185
 
<td width="15%"></td>
186
 
<td width="85%">
187
 
<p>Do case sensitive searches by default.</p>
188
 
</td>
189
 
</table>
190
 
<!-- INDENTATION -->
191
 
<table width="100%" border=0 rules="none" frame="void"
192
 
       cols="2" cellspacing="0" cellpadding="0">
193
 
<tr valign="top" align="left">
194
 
<td width="11%"></td>
195
 
<td width="89%">
196
 
<p><b>set/unset const</b></p></td>
197
 
</table>
198
 
<!-- INDENTATION -->
199
 
<table width="100%" border=0 rules="none" frame="void"
200
 
       cols="2" cellspacing="0" cellpadding="0">
201
 
<tr valign="top" align="left">
202
 
<td width="15%"></td>
203
 
<td width="85%">
204
 
<p>Constantly display the cursor position in the status
205
 
bar.</p>
206
 
</td>
207
 
</table>
208
 
<!-- INDENTATION -->
209
 
<table width="100%" border=0 rules="none" frame="void"
210
 
       cols="2" cellspacing="0" cellpadding="0">
211
 
<tr valign="top" align="left">
212
 
<td width="11%"></td>
213
 
<td width="89%">
214
 
<p><b>set/unset cut</b></p></td>
215
 
</table>
216
 
<!-- INDENTATION -->
217
 
<table width="100%" border=0 rules="none" frame="void"
218
 
       cols="2" cellspacing="0" cellpadding="0">
219
 
<tr valign="top" align="left">
220
 
<td width="15%"></td>
221
 
<td width="85%">
222
 
<p>Use cut to end of line by default.</p>
223
 
</td>
224
 
</table>
225
 
<!-- INDENTATION -->
226
 
<table width="100%" border=0 rules="none" frame="void"
227
 
       cols="2" cellspacing="0" cellpadding="0">
228
 
<tr valign="top" align="left">
229
 
<td width="11%"></td>
230
 
<td width="89%">
231
 
<p><b>set fill</b> <i>n</i></p></td>
232
 
</table>
233
 
<!-- INDENTATION -->
234
 
<table width="100%" border=0 rules="none" frame="void"
235
 
       cols="2" cellspacing="0" cellpadding="0">
236
 
<tr valign="top" align="left">
237
 
<td width="15%"></td>
238
 
<td width="85%">
239
 
<p>Wrap lines at column number <i>n</i>. If <i>n</i> is 0 or
240
 
less, the maximum line length will be the screen width less
241
 
<i>n</i> columns. The default value is -8.</p>
242
 
</td>
243
 
</table>
244
 
<!-- INDENTATION -->
245
 
<table width="100%" border=0 rules="none" frame="void"
246
 
       cols="2" cellspacing="0" cellpadding="0">
247
 
<tr valign="top" align="left">
248
 
<td width="11%"></td>
249
 
<td width="89%">
250
 
<p><b>set/unset historylog</b></p></td>
251
 
</table>
252
 
<!-- INDENTATION -->
253
 
<table width="100%" border=0 rules="none" frame="void"
254
 
       cols="2" cellspacing="0" cellpadding="0">
255
 
<tr valign="top" align="left">
256
 
<td width="15%"></td>
257
 
<td width="85%">
258
 
<p>Enable <i>~/.nano_history</i> for saving and reading
259
 
search/replace strings.</p>
260
 
</td>
261
 
</table>
262
 
<!-- INDENTATION -->
263
 
<table width="100%" border=0 rules="none" frame="void"
264
 
       cols="2" cellspacing="0" cellpadding="0">
265
 
<tr valign="top" align="left">
266
 
<td width="11%"></td>
267
 
<td width="89%">
268
 
<p><b>set/unset morespace</b></p></td>
269
 
</table>
270
 
<!-- INDENTATION -->
271
 
<table width="100%" border=0 rules="none" frame="void"
272
 
       cols="2" cellspacing="0" cellpadding="0">
273
 
<tr valign="top" align="left">
274
 
<td width="15%"></td>
275
 
<td width="85%">
276
 
<p>Allow use of the blank line below the titlebar as extra
277
 
editing space.</p>
278
 
</td>
279
 
</table>
280
 
<!-- INDENTATION -->
281
 
<table width="100%" border=0 rules="none" frame="void"
282
 
       cols="2" cellspacing="0" cellpadding="0">
283
 
<tr valign="top" align="left">
284
 
<td width="11%"></td>
285
 
<td width="89%">
286
 
<p><b>set/unset mouse</b></p></td>
287
 
</table>
288
 
<!-- INDENTATION -->
289
 
<table width="100%" border=0 rules="none" frame="void"
290
 
       cols="2" cellspacing="0" cellpadding="0">
291
 
<tr valign="top" align="left">
292
 
<td width="15%"></td>
293
 
<td width="85%">
294
 
<p>Enable mouse support, so that mouse clicks can be used to
295
 
set the mark and run shortcuts.</p>
296
 
</td>
297
 
</table>
298
 
<!-- INDENTATION -->
299
 
<table width="100%" border=0 rules="none" frame="void"
300
 
       cols="2" cellspacing="0" cellpadding="0">
301
 
<tr valign="top" align="left">
302
 
<td width="11%"></td>
303
 
<td width="89%">
304
 
<p><b>set/unset multibuffer</b></p></td>
305
 
</table>
306
 
<!-- INDENTATION -->
307
 
<table width="100%" border=0 rules="none" frame="void"
308
 
       cols="2" cellspacing="0" cellpadding="0">
309
 
<tr valign="top" align="left">
310
 
<td width="15%"></td>
311
 
<td width="85%">
312
 
<p>Allow inserting files into their own buffers.</p>
313
 
</td>
314
 
</table>
315
 
<!-- INDENTATION -->
316
 
<table width="100%" border=0 rules="none" frame="void"
317
 
       cols="2" cellspacing="0" cellpadding="0">
318
 
<tr valign="top" align="left">
319
 
<td width="11%"></td>
320
 
<td width="89%">
321
 
<p><b>set/unset noconvert</b></p></td>
322
 
</table>
323
 
<!-- INDENTATION -->
324
 
<table width="100%" border=0 rules="none" frame="void"
325
 
       cols="2" cellspacing="0" cellpadding="0">
326
 
<tr valign="top" align="left">
327
 
<td width="15%"></td>
328
 
<td width="85%">
329
 
<p>Don&rsquo;t convert files from DOS/Mac format.</p>
330
 
</td>
331
 
</table>
332
 
<!-- INDENTATION -->
333
 
<table width="100%" border=0 rules="none" frame="void"
334
 
       cols="2" cellspacing="0" cellpadding="0">
335
 
<tr valign="top" align="left">
336
 
<td width="11%"></td>
337
 
<td width="89%">
338
 
<p><b>set/unset nofollow</b></p></td>
339
 
</table>
340
 
<!-- INDENTATION -->
341
 
<table width="100%" border=0 rules="none" frame="void"
342
 
       cols="2" cellspacing="0" cellpadding="0">
343
 
<tr valign="top" align="left">
344
 
<td width="15%"></td>
345
 
<td width="85%">
346
 
<p>Don&rsquo;t follow symlinks when writing files.</p>
347
 
</td>
348
 
</table>
349
 
<!-- INDENTATION -->
350
 
<table width="100%" border=0 rules="none" frame="void"
351
 
       cols="2" cellspacing="0" cellpadding="0">
352
 
<tr valign="top" align="left">
353
 
<td width="11%"></td>
354
 
<td width="89%">
355
 
<p><b>set/unset nohelp</b></p></td>
356
 
</table>
357
 
<!-- INDENTATION -->
358
 
<table width="100%" border=0 rules="none" frame="void"
359
 
       cols="2" cellspacing="0" cellpadding="0">
360
 
<tr valign="top" align="left">
361
 
<td width="15%"></td>
362
 
<td width="85%">
363
 
<p>Don&rsquo;t display the help lists at the bottom of the
364
 
screen.</p>
365
 
</td>
366
 
</table>
367
 
<!-- INDENTATION -->
368
 
<table width="100%" border=0 rules="none" frame="void"
369
 
       cols="2" cellspacing="0" cellpadding="0">
370
 
<tr valign="top" align="left">
371
 
<td width="11%"></td>
372
 
<td width="89%">
373
 
<p><b>set/unset nonewlines</b></p></td>
374
 
</table>
375
 
<!-- INDENTATION -->
376
 
<table width="100%" border=0 rules="none" frame="void"
377
 
       cols="2" cellspacing="0" cellpadding="0">
378
 
<tr valign="top" align="left">
379
 
<td width="15%"></td>
380
 
<td width="85%">
381
 
<p>Don&rsquo;t add newlines to the ends of files.</p>
382
 
</td>
383
 
</table>
384
 
<!-- INDENTATION -->
385
 
<table width="100%" border=0 rules="none" frame="void"
386
 
       cols="2" cellspacing="0" cellpadding="0">
387
 
<tr valign="top" align="left">
388
 
<td width="11%"></td>
389
 
<td width="89%">
390
 
<p><b>set/unset nowrap</b></p></td>
391
 
</table>
392
 
<!-- INDENTATION -->
393
 
<table width="100%" border=0 rules="none" frame="void"
394
 
       cols="2" cellspacing="0" cellpadding="0">
395
 
<tr valign="top" align="left">
396
 
<td width="15%"></td>
397
 
<td width="85%">
398
 
<p>Don&rsquo;t wrap text at all.</p>
399
 
</td>
400
 
</table>
401
 
<!-- INDENTATION -->
402
 
<table width="100%" border=0 rules="none" frame="void"
403
 
       cols="2" cellspacing="0" cellpadding="0">
404
 
<tr valign="top" align="left">
405
 
<td width="11%"></td>
406
 
<td width="89%">
407
 
<p><b>set operatingdir</b> <i>directory</i></p></td>
408
 
</table>
409
 
<!-- INDENTATION -->
410
 
<table width="100%" border=0 rules="none" frame="void"
411
 
       cols="2" cellspacing="0" cellpadding="0">
412
 
<tr valign="top" align="left">
413
 
<td width="15%"></td>
414
 
<td width="85%">
415
 
<p><b>nano</b> will only read and write files inside
416
 
<i>directory</i> and its subdirectories. Also, the current
417
 
directory is changed to here, so files are inserted from
418
 
this dir. By default the operating directory feature is
419
 
turned off.</p>
420
 
</td>
421
 
</table>
422
 
<!-- INDENTATION -->
423
 
<table width="100%" border=0 rules="none" frame="void"
424
 
       cols="2" cellspacing="0" cellpadding="0">
425
 
<tr valign="top" align="left">
426
 
<td width="11%"></td>
427
 
<td width="89%">
428
 
<p><b>set/unset preserve</b></p></td>
429
 
</table>
430
 
<!-- INDENTATION -->
431
 
<table width="100%" border=0 rules="none" frame="void"
432
 
       cols="2" cellspacing="0" cellpadding="0">
433
 
<tr valign="top" align="left">
434
 
<td width="15%"></td>
435
 
<td width="85%">
436
 
<p>Preserve the XON and XOFF keys (^Q and ^S).</p>
437
 
</td>
438
 
</table>
439
 
<!-- INDENTATION -->
440
 
<table width="100%" border=0 rules="none" frame="void"
441
 
       cols="2" cellspacing="0" cellpadding="0">
442
 
<tr valign="top" align="left">
443
 
<td width="11%"></td>
444
 
<td width="89%">
445
 
<p><b>set punct</b> <i>string</i></p></td>
446
 
</table>
447
 
<!-- INDENTATION -->
448
 
<table width="100%" border=0 rules="none" frame="void"
449
 
       cols="2" cellspacing="0" cellpadding="0">
450
 
<tr valign="top" align="left">
451
 
<td width="15%"></td>
452
 
<td width="85%">
453
 
<p>Set the characters treated as closing punctuation. They
454
 
cannot contain blank characters. Only closing punctuation,
455
 
optionally followed by closing brackets, can end
456
 
sentences.</p>
457
 
</td>
458
 
</table>
459
 
<!-- INDENTATION -->
460
 
<table width="100%" border=0 rules="none" frame="void"
461
 
       cols="2" cellspacing="0" cellpadding="0">
462
 
<tr valign="top" align="left">
463
 
<td width="11%"></td>
464
 
<td width="89%">
465
 
<p><b>set/unset quickblank</b></p></td>
466
 
</table>
467
 
<!-- INDENTATION -->
468
 
<table width="100%" border=0 rules="none" frame="void"
469
 
       cols="2" cellspacing="0" cellpadding="0">
470
 
<tr valign="top" align="left">
471
 
<td width="15%"></td>
472
 
<td width="85%">
473
 
<p>Do quick statusbar blanking. Statusbar messages will
474
 
disappear after 1 keystroke instead of 25.</p>
475
 
</td>
476
 
</table>
477
 
<!-- INDENTATION -->
478
 
<table width="100%" border=0 rules="none" frame="void"
479
 
       cols="2" cellspacing="0" cellpadding="0">
480
 
<tr valign="top" align="left">
481
 
<td width="11%"></td>
482
 
<td width="89%">
483
 
<p><b>set quotestr</b> <i>string</i></p></td>
484
 
</table>
485
 
<!-- INDENTATION -->
486
 
<table width="100%" border=0 rules="none" frame="void"
487
 
       cols="2" cellspacing="0" cellpadding="0">
488
 
<tr valign="top" align="left">
489
 
<td width="15%"></td>
490
 
<td width="85%">
491
 
<p>The email-quote string, used to justify email-quoted
492
 
paragraphs. This is an &quot;extended regular
493
 
expression&quot; if your system supports them, otherwise a
494
 
literal string. The default value is</p>
495
 
</td>
496
 
</table>
497
 
<!-- TABS -->
498
 
<table width="100%" border=0 rules="none" frame="void"
499
 
       cols="3" cellspacing="0" cellpadding="0">
500
 
<tr valign="top" align="left">
501
 
<td width="23%"></td>
502
 
<td width="8%">
503
 
 
504
 
<p>set quotestr &quot;^([&nbsp;\t]*[|&gt;:}#])+&quot;</p>
505
 
</td>
506
 
<td width="69%">
507
 
</td>
508
 
</table>
509
 
<!-- INDENTATION -->
510
 
<table width="100%" border=0 rules="none" frame="void"
511
 
       cols="2" cellspacing="0" cellpadding="0">
512
 
<tr valign="top" align="left">
513
 
<td width="15%"></td>
514
 
<td width="85%">
515
 
<p>if you have regexps, otherwise set quotestr
516
 
&quot;&gt;&nbsp;&quot;. Note that &rsquo;\t&rsquo; above
517
 
stands for a literal Tab character.</p>
518
 
</td>
519
 
</table>
520
 
<!-- INDENTATION -->
521
 
<table width="100%" border=0 rules="none" frame="void"
522
 
       cols="2" cellspacing="0" cellpadding="0">
523
 
<tr valign="top" align="left">
524
 
<td width="11%"></td>
525
 
<td width="89%">
526
 
<p><b>set/unset rebinddelete</b></p></td>
527
 
</table>
528
 
<!-- INDENTATION -->
529
 
<table width="100%" border=0 rules="none" frame="void"
530
 
       cols="2" cellspacing="0" cellpadding="0">
531
 
<tr valign="top" align="left">
532
 
<td width="15%"></td>
533
 
<td width="85%">
534
 
<p>Interpret the Delete key differently so that both
535
 
Backspace and Delete work properly. You should only need to
536
 
use this option if Backspace acts like Delete on your
537
 
system.</p>
538
 
</td>
539
 
</table>
540
 
<!-- INDENTATION -->
541
 
<table width="100%" border=0 rules="none" frame="void"
542
 
       cols="2" cellspacing="0" cellpadding="0">
543
 
<tr valign="top" align="left">
544
 
<td width="11%"></td>
545
 
<td width="89%">
546
 
<p><b>set/unset rebindkeypad</b></p></td>
547
 
</table>
548
 
<!-- INDENTATION -->
549
 
<table width="100%" border=0 rules="none" frame="void"
550
 
       cols="2" cellspacing="0" cellpadding="0">
551
 
<tr valign="top" align="left">
552
 
<td width="15%"></td>
553
 
<td width="85%">
554
 
<p>Interpret the numeric keypad keys so that they all work
555
 
properly. You should only need to use this option if they
556
 
don&rsquo;t, as mouse support won&rsquo;t work properly with
557
 
this option enabled.</p>
558
 
</td>
559
 
</table>
560
 
<!-- INDENTATION -->
561
 
<table width="100%" border=0 rules="none" frame="void"
562
 
       cols="2" cellspacing="0" cellpadding="0">
563
 
<tr valign="top" align="left">
564
 
<td width="11%"></td>
565
 
<td width="89%">
566
 
<p><b>set/unset regexp</b></p></td>
567
 
</table>
568
 
<!-- INDENTATION -->
569
 
<table width="100%" border=0 rules="none" frame="void"
570
 
       cols="2" cellspacing="0" cellpadding="0">
571
 
<tr valign="top" align="left">
572
 
<td width="15%"></td>
573
 
<td width="85%">
574
 
<p>Do regular expression searches by default.</p>
575
 
</td>
576
 
</table>
577
 
<!-- INDENTATION -->
578
 
<table width="100%" border=0 rules="none" frame="void"
579
 
       cols="2" cellspacing="0" cellpadding="0">
580
 
<tr valign="top" align="left">
581
 
<td width="11%"></td>
582
 
<td width="89%">
583
 
<p><b>set/unset smarthome</b></p></td>
584
 
</table>
585
 
<!-- INDENTATION -->
586
 
<table width="100%" border=0 rules="none" frame="void"
587
 
       cols="2" cellspacing="0" cellpadding="0">
588
 
<tr valign="top" align="left">
589
 
<td width="15%"></td>
590
 
<td width="85%">
591
 
<p>Make the Home key smarter. When Home is pressed anywhere
592
 
but at the very beginning of non-whitespace characters on a
593
 
line, the cursor will jump to that beginning (either
594
 
forwards or backwards). If the cursor is already at that
595
 
position, it will jump to the true beginning of the
596
 
line.</p>
597
 
</td>
598
 
</table>
599
 
<!-- INDENTATION -->
600
 
<table width="100%" border=0 rules="none" frame="void"
601
 
       cols="2" cellspacing="0" cellpadding="0">
602
 
<tr valign="top" align="left">
603
 
<td width="11%"></td>
604
 
<td width="89%">
605
 
<p><b>set/unset smooth</b></p></td>
606
 
</table>
607
 
<!-- INDENTATION -->
608
 
<table width="100%" border=0 rules="none" frame="void"
609
 
       cols="2" cellspacing="0" cellpadding="0">
610
 
<tr valign="top" align="left">
611
 
<td width="15%"></td>
612
 
<td width="85%">
613
 
<p>Use smooth scrolling by default.</p>
614
 
</td>
615
 
</table>
616
 
<!-- INDENTATION -->
617
 
<table width="100%" border=0 rules="none" frame="void"
618
 
       cols="2" cellspacing="0" cellpadding="0">
619
 
<tr valign="top" align="left">
620
 
<td width="11%"></td>
621
 
<td width="89%">
622
 
<p><b>set speller</b> <i>spellprog</i></p></td>
623
 
</table>
624
 
<!-- INDENTATION -->
625
 
<table width="100%" border=0 rules="none" frame="void"
626
 
       cols="2" cellspacing="0" cellpadding="0">
627
 
<tr valign="top" align="left">
628
 
<td width="15%"></td>
629
 
<td width="85%">
630
 
<p>Use spelling checker <i>spellprog</i> instead of the
631
 
built-in one, which calls <i>spell</i>.</p>
632
 
</td>
633
 
</table>
634
 
<!-- INDENTATION -->
635
 
<table width="100%" border=0 rules="none" frame="void"
636
 
       cols="2" cellspacing="0" cellpadding="0">
637
 
<tr valign="top" align="left">
638
 
<td width="11%"></td>
639
 
<td width="89%">
640
 
<p><b>set/unset suspend</b></p></td>
641
 
</table>
642
 
<!-- INDENTATION -->
643
 
<table width="100%" border=0 rules="none" frame="void"
644
 
       cols="2" cellspacing="0" cellpadding="0">
645
 
<tr valign="top" align="left">
646
 
<td width="15%"></td>
647
 
<td width="85%">
648
 
<p>Allow nano to be suspended.</p>
649
 
</td>
650
 
</table>
651
 
<!-- INDENTATION -->
652
 
<table width="100%" border=0 rules="none" frame="void"
653
 
       cols="2" cellspacing="0" cellpadding="0">
654
 
<tr valign="top" align="left">
655
 
<td width="11%"></td>
656
 
<td width="89%">
657
 
<p><b>set tabsize</b> <i>n</i></p></td>
658
 
</table>
659
 
<!-- INDENTATION -->
660
 
<table width="100%" border=0 rules="none" frame="void"
661
 
       cols="2" cellspacing="0" cellpadding="0">
662
 
<tr valign="top" align="left">
663
 
<td width="15%"></td>
664
 
<td width="85%">
665
 
<p>Use a tab size of <i>n</i> columns. The value of <i>n</i>
666
 
must be greater than 0. The default value is 8.</p>
667
 
</td>
668
 
</table>
669
 
<!-- INDENTATION -->
670
 
<table width="100%" border=0 rules="none" frame="void"
671
 
       cols="2" cellspacing="0" cellpadding="0">
672
 
<tr valign="top" align="left">
673
 
<td width="11%"></td>
674
 
<td width="89%">
675
 
<p><b>set/unset tabstospaces</b></p></td>
676
 
</table>
677
 
<!-- INDENTATION -->
678
 
<table width="100%" border=0 rules="none" frame="void"
679
 
       cols="2" cellspacing="0" cellpadding="0">
680
 
<tr valign="top" align="left">
681
 
<td width="15%"></td>
682
 
<td width="85%">
683
 
<p>Convert typed tabs to spaces.</p>
684
 
</td>
685
 
</table>
686
 
<!-- INDENTATION -->
687
 
<table width="100%" border=0 rules="none" frame="void"
688
 
       cols="2" cellspacing="0" cellpadding="0">
689
 
<tr valign="top" align="left">
690
 
<td width="11%"></td>
691
 
<td width="89%">
692
 
<p><b>set/unset tempfile</b></p></td>
693
 
</table>
694
 
<!-- INDENTATION -->
695
 
<table width="100%" border=0 rules="none" frame="void"
696
 
       cols="2" cellspacing="0" cellpadding="0">
697
 
<tr valign="top" align="left">
698
 
<td width="15%"></td>
699
 
<td width="85%">
700
 
<p>Save automatically on exit, don&rsquo;t prompt.</p>
701
 
</td>
702
 
</table>
703
 
<!-- INDENTATION -->
704
 
<table width="100%" border=0 rules="none" frame="void"
705
 
       cols="2" cellspacing="0" cellpadding="0">
706
 
<tr valign="top" align="left">
707
 
<td width="11%"></td>
708
 
<td width="89%">
709
 
<p><b>set/unset view</b></p></td>
710
 
</table>
711
 
<!-- INDENTATION -->
712
 
<table width="100%" border=0 rules="none" frame="void"
713
 
       cols="2" cellspacing="0" cellpadding="0">
714
 
<tr valign="top" align="left">
715
 
<td width="15%"></td>
716
 
<td width="85%">
717
 
<p>Disallow file modification.</p>
718
 
</td>
719
 
</table>
720
 
<!-- INDENTATION -->
721
 
<table width="100%" border=0 rules="none" frame="void"
722
 
       cols="2" cellspacing="0" cellpadding="0">
723
 
<tr valign="top" align="left">
724
 
<td width="11%"></td>
725
 
<td width="89%">
726
 
<p><b>set whitespace</b> <i>string</i></p></td>
727
 
</table>
728
 
<!-- INDENTATION -->
729
 
<table width="100%" border=0 rules="none" frame="void"
730
 
       cols="2" cellspacing="0" cellpadding="0">
731
 
<tr valign="top" align="left">
732
 
<td width="15%"></td>
733
 
<td width="85%">
734
 
<p>Set the two characters used to display the first
735
 
characters of tabs and spaces. They must be single-column
736
 
characters.</p>
737
 
</td>
738
 
</table>
739
 
<!-- INDENTATION -->
740
 
<table width="100%" border=0 rules="none" frame="void"
741
 
       cols="2" cellspacing="0" cellpadding="0">
742
 
<tr valign="top" align="left">
743
 
<td width="11%"></td>
744
 
<td width="89%">
745
 
<p><b>set/unset wordbounds</b></p></td>
746
 
</table>
747
 
<!-- INDENTATION -->
748
 
<table width="100%" border=0 rules="none" frame="void"
749
 
       cols="2" cellspacing="0" cellpadding="0">
750
 
<tr valign="top" align="left">
751
 
<td width="15%"></td>
752
 
<td width="85%">
753
 
<p>Detect word boundaries more accurately by treating
754
 
punctuation characters as part of a word.</p>
755
 
</td>
756
 
</table>
757
 
<!-- INDENTATION -->
758
 
<table width="100%" border=0 rules="none" frame="void"
759
 
       cols="2" cellspacing="0" cellpadding="0">
760
 
<tr valign="top" align="left">
761
 
<td width="11%"></td>
762
 
<td width="89%">
763
 
<p><b>syntax</b> <i>str</i>
764
 
<b>[&quot;</b><i>fileregex</i><b>&quot; ... ]</b></p></td>
765
 
</table>
766
 
<!-- INDENTATION -->
767
 
<table width="100%" border=0 rules="none" frame="void"
768
 
       cols="2" cellspacing="0" cellpadding="0">
769
 
<tr valign="top" align="left">
770
 
<td width="15%"></td>
771
 
<td width="85%">
772
 
<p>Defines a syntax named <i>str</i> which can be activated
773
 
via the <b>-Y</b> flag, or will be automatically activated
774
 
if the current filename matches <i>fileregex</i>. All
775
 
following <b>color</b> and <b>icolor</b> statements will
776
 
apply to <i>syntax</i> until a new syntax is defined.</p>
777
 
<!-- INDENTATION -->
778
 
<p>The <i>none</i> syntax is reserved; specifying it on the
779
 
command line is the same as not having a syntax at all. The
780
 
<i>default</i> syntax is special: it takes no
781
 
<i>fileregex</i>, and applies to files that don&rsquo;t
782
 
match any other syntax&rsquo;s <i>fileregex</i>.</p>
783
 
</td>
784
 
</table>
785
 
<!-- INDENTATION -->
786
 
<table width="100%" border=0 rules="none" frame="void"
787
 
       cols="2" cellspacing="0" cellpadding="0">
788
 
<tr valign="top" align="left">
789
 
<td width="11%"></td>
790
 
<td width="89%">
791
 
<p><b>color</b> <i>fgcolor</i><b>,</b><i>bgcolor regex</i>
792
 
<b>...</b></p></td>
793
 
</table>
794
 
<!-- INDENTATION -->
795
 
<table width="100%" border=0 rules="none" frame="void"
796
 
       cols="2" cellspacing="0" cellpadding="0">
797
 
<tr valign="top" align="left">
798
 
<td width="15%"></td>
799
 
<td width="85%">
800
 
<p>For the currently defined syntax, display all expressions
801
 
matching <i>regex</i> with foreground color <i>fgcolor</i>
802
 
and background color <i>bgcolor</i>, at least one of which
803
 
must be specified. Legal colors for foreground and
804
 
background color are: white, black, red, blue, green,
805
 
yellow, magenta, and cyan. You may use the prefix
806
 
&quot;bright&quot; to force a stronger color highlight for
807
 
the foreground. If your terminal supports transparency, not
808
 
specifying a <i>bgcolor</i> tells <b>nano</b> to attempt to
809
 
use a transparent background.</p>
810
 
</td>
811
 
</table>
812
 
<!-- INDENTATION -->
813
 
<table width="100%" border=0 rules="none" frame="void"
814
 
       cols="2" cellspacing="0" cellpadding="0">
815
 
<tr valign="top" align="left">
816
 
<td width="11%"></td>
817
 
<td width="89%">
818
 
<p><b>icolor</b> <i>fgcolor</i><b>,</b><i>bgcolor regex</i>
819
 
<b>...</b></p></td>
820
 
</table>
821
 
<!-- INDENTATION -->
822
 
<table width="100%" border=0 rules="none" frame="void"
823
 
       cols="2" cellspacing="0" cellpadding="0">
824
 
<tr valign="top" align="left">
825
 
<td width="15%"></td>
826
 
<td width="85%">
827
 
<p>Same as above, except that the expression matching is
828
 
case insensitive.</p>
829
 
</td>
830
 
</table>
831
 
<!-- INDENTATION -->
832
 
<table width="100%" border=0 rules="none" frame="void"
833
 
       cols="2" cellspacing="0" cellpadding="0">
834
 
<tr valign="top" align="left">
835
 
<td width="11%"></td>
836
 
<td width="89%">
837
 
<p><b>color</b> <i>fgcolor</i><b>,</b><i>bgcolor</i>
838
 
<b>start=&quot;</b><i>sr</i><b>&quot;
839
 
end=&quot;</b><i>er</i><b>&quot;</b></p></td>
840
 
</table>
841
 
<!-- INDENTATION -->
842
 
<table width="100%" border=0 rules="none" frame="void"
843
 
       cols="2" cellspacing="0" cellpadding="0">
844
 
<tr valign="top" align="left">
845
 
<td width="15%"></td>
846
 
<td width="85%">
847
 
<p>Display expressions which start with <i>sr</i> and end
848
 
with <i>er</i> with foreground color <i>fgcolor</i> and
849
 
background color <i>bgcolor</i>, at least one of which must
850
 
be specified. This allows syntax highlighting to span
851
 
multiple lines. Note that all subsequent instances of
852
 
<i>sr</i> after an initial <i>sr</i> is found will be
853
 
highlighted until the first instance of <i>er</i>.</p>
854
 
</td>
855
 
</table>
856
 
<!-- INDENTATION -->
857
 
<table width="100%" border=0 rules="none" frame="void"
858
 
       cols="2" cellspacing="0" cellpadding="0">
859
 
<tr valign="top" align="left">
860
 
<td width="11%"></td>
861
 
<td width="89%">
862
 
<p><b>icolor</b> <i>fgcolor</i><b>,</b><i>bgcolor</i>
863
 
<b>start=&quot;</b><i>sr</i><b>&quot;
864
 
end=&quot;</b><i>er</i><b>&quot;</b></p></td>
865
 
</table>
866
 
<!-- INDENTATION -->
867
 
<table width="100%" border=0 rules="none" frame="void"
868
 
       cols="2" cellspacing="0" cellpadding="0">
869
 
<tr valign="top" align="left">
870
 
<td width="15%"></td>
871
 
<td width="85%">
872
 
<p>Same as above, except that the expression matching is
873
 
case insensitive.</p>
874
 
</td>
875
 
</table>
 
62
 
 
63
 
 
64
<p style="margin-left:11%; margin-top: 1em">The
 
65
configuration file accepts a series of &quot;set&quot; and
 
66
&quot;unset&quot; commands, which can be used to configure
 
67
nano on startup without using the command-line options.
 
68
Additionally, the &quot;syntax&quot;, &quot;color&quot;, and
 
69
&quot;icolor&quot; keywords are used to define syntax
 
70
highlighting rules for different text patterns. GNU nano
 
71
will read one command per line.</p>
 
72
 
 
73
<p style="margin-left:11%; margin-top: 1em">Options in
 
74
rcfiles take precedence over nano&rsquo;s defaults, and
 
75
command line options override rcfile settings.</p>
 
76
 
 
77
<p style="margin-left:11%; margin-top: 1em">Options are
 
78
unset by default, except for options that take an
 
79
argument.</p>
 
80
 
 
81
<p style="margin-left:11%; margin-top: 1em">Quotes inside
 
82
string parameters don&rsquo;t have to be escaped with
 
83
backslashes. The last double quote in the string will be
 
84
treated as its end. For example, for the brackets option,
 
85
&quot;<i>&quot;&rsquo;)&gt;]}</i>&quot; will match
 
86
<i>&quot;</i>, <i>&rsquo;</i>, <i>)</i>, <i>&gt;</i>,
 
87
<i>]</i>, and <i>}</i>.</p>
 
88
 
 
89
<p style="margin-left:11%; margin-top: 1em">The supported
 
90
commands and arguments are: <b><br>
 
91
set/unset autoindent</b></p>
 
92
 
 
93
<p style="margin-left:15%;">Use auto-indentation.</p>
 
94
 
 
95
<p style="margin-left:11%;"><b>set/unset backup</b></p>
 
96
 
 
97
<p style="margin-left:15%;">Create backup files in
 
98
<i>filename~</i>.</p>
 
99
 
 
100
<p style="margin-left:11%;"><b>set backupdir</b>
 
101
<i>directory</i></p>
 
102
 
 
103
<p style="margin-left:15%;">Set the directory where
 
104
<b>nano</b> puts unique backup files if file backups are
 
105
enabled.</p>
 
106
 
 
107
<p style="margin-left:11%;"><b>set/unset backwards</b></p>
 
108
 
 
109
<p style="margin-left:15%;">Do backwards searches by
 
110
default.</p>
 
111
 
 
112
<p style="margin-left:11%;"><b>set brackets</b>
 
113
<i>string</i></p>
 
114
 
 
115
<p style="margin-left:15%;">Set the characters treated as
 
116
closing brackets. They cannot contain blank characters. Only
 
117
closing punctuation, optionally followed by closing
 
118
brackets, can end sentences. The default value is
 
119
&quot;<i>&quot;&rsquo;)&gt;]}</i>&quot;.</p>
 
120
 
 
121
<p style="margin-left:11%;"><b>set/unset
 
122
casesensitive</b></p>
 
123
 
 
124
<p style="margin-left:15%;">Do case sensitive searches by
 
125
default.</p>
 
126
 
 
127
<p style="margin-left:11%;"><b>set/unset const</b></p>
 
128
 
 
129
<p style="margin-left:15%;">Constantly display the cursor
 
130
position in the status bar.</p>
 
131
 
 
132
<p style="margin-left:11%;"><b>set/unset cut</b></p>
 
133
 
 
134
<p style="margin-left:15%;">Use cut to end of line by
 
135
default.</p>
 
136
 
 
137
<p style="margin-left:11%;"><b>set fill</b> <i>n</i></p>
 
138
 
 
139
<p style="margin-left:15%;">Wrap lines at column number
 
140
<i>n</i>. If <i>n</i> is 0 or less, the maximum line length
 
141
will be the screen width less <i>n</i> columns. The default
 
142
value is -8.</p>
 
143
 
 
144
<p style="margin-left:11%;"><b>set/unset historylog</b></p>
 
145
 
 
146
<p style="margin-left:15%;">Enable <i>~/.nano_history</i>
 
147
for saving and reading search/replace strings.</p>
 
148
 
 
149
<p style="margin-left:11%;"><b>set matchbrackets</b>
 
150
<i>string</i></p>
 
151
 
 
152
<p style="margin-left:15%;">Set the opening and closing
 
153
brackets that can be found by bracket searches. They cannot
 
154
contain blank characters. The former set must come before
 
155
the latter set, and both must be in the same order. The
 
156
default value is &quot;<i>(&lt;[{)&gt;]}</i>&quot;.</p>
 
157
 
 
158
<p style="margin-left:11%;"><b>set/unset morespace</b></p>
 
159
 
 
160
<p style="margin-left:15%;">Allow use of the blank line
 
161
below the titlebar as extra editing space.</p>
 
162
 
 
163
<p style="margin-left:11%;"><b>set/unset mouse</b></p>
 
164
 
 
165
<p style="margin-left:15%;">Enable mouse support, so that
 
166
mouse clicks can be used to set the mark and run
 
167
shortcuts.</p>
 
168
 
 
169
<p style="margin-left:11%;"><b>set/unset
 
170
multibuffer</b></p>
 
171
 
 
172
<p style="margin-left:15%;">Allow inserting files into
 
173
their own buffers.</p>
 
174
 
 
175
<p style="margin-left:11%;"><b>set/unset noconvert</b></p>
 
176
 
 
177
<p style="margin-left:15%;">Don&rsquo;t convert files from
 
178
DOS/Mac format.</p>
 
179
 
 
180
<p style="margin-left:11%;"><b>set/unset nofollow</b></p>
 
181
 
 
182
<p style="margin-left:15%;">Don&rsquo;t follow symlinks
 
183
when writing files.</p>
 
184
 
 
185
<p style="margin-left:11%;"><b>set/unset nohelp</b></p>
 
186
 
 
187
<p style="margin-left:15%;">Don&rsquo;t display the help
 
188
lists at the bottom of the screen.</p>
 
189
 
 
190
<p style="margin-left:11%;"><b>set/unset nonewlines</b></p>
 
191
 
 
192
<p style="margin-left:15%;">Don&rsquo;t add newlines to the
 
193
ends of files.</p>
 
194
 
 
195
<p style="margin-left:11%;"><b>set/unset nowrap</b></p>
 
196
 
 
197
<p style="margin-left:15%;">Don&rsquo;t wrap text at
 
198
all.</p>
 
199
 
 
200
<p style="margin-left:11%;"><b>set operatingdir</b>
 
201
<i>directory</i></p>
 
202
 
 
203
<p style="margin-left:15%;"><b>nano</b> will only read and
 
204
write files inside <i>directory</i> and its subdirectories.
 
205
Also, the current directory is changed to here, so files are
 
206
inserted from this dir. By default the operating directory
 
207
feature is turned off.</p>
 
208
 
 
209
<p style="margin-left:11%;"><b>set/unset preserve</b></p>
 
210
 
 
211
<p style="margin-left:15%;">Preserve the XON and XOFF keys
 
212
(^Q and ^S).</p>
 
213
 
 
214
<p style="margin-left:11%;"><b>set punct</b>
 
215
<i>string</i></p>
 
216
 
 
217
<p style="margin-left:15%;">Set the characters treated as
 
218
closing punctuation. They cannot contain blank characters.
 
219
Only closing punctuation, optionally followed by closing
 
220
brackets, can end sentences. The default value is
 
221
&quot;<i>!.?</i>&quot;.</p>
 
222
 
 
223
<p style="margin-left:11%;"><b>set/unset quickblank</b></p>
 
224
 
 
225
<p style="margin-left:15%;">Do quick statusbar blanking.
 
226
Statusbar messages will disappear after 1 keystroke instead
 
227
of 25.</p>
 
228
 
 
229
<p style="margin-left:11%;"><b>set quotestr</b>
 
230
<i>string</i></p>
 
231
 
 
232
<p style="margin-left:15%;">The email-quote string, used to
 
233
justify email-quoted paragraphs. This is an &quot;extended
 
234
regular expression&quot; if your system supports them,
 
235
otherwise a literal string. The default value is
 
236
&quot;<i>^([&nbsp;\t]*[#:&gt;\|}])+</i>&quot; if you have
 
237
regexps, or &quot;<i>&gt;&nbsp;</i>&quot; otherwise. Note
 
238
that &rsquo;\t&rsquo; stands for a literal Tab
 
239
character.</p>
 
240
 
 
241
<p style="margin-left:11%;"><b>set/unset
 
242
rebinddelete</b></p>
 
243
 
 
244
<p style="margin-left:15%;">Interpret the Delete key
 
245
differently so that both Backspace and Delete work properly.
 
246
You should only need to use this option if Backspace acts
 
247
like Delete on your system.</p>
 
248
 
 
249
<p style="margin-left:11%;"><b>set/unset
 
250
rebindkeypad</b></p>
 
251
 
 
252
<p style="margin-left:15%;">Interpret the numeric keypad
 
253
keys so that they all work properly. You should only need to
 
254
use this option if they don&rsquo;t, as mouse support
 
255
won&rsquo;t work properly with this option enabled.</p>
 
256
 
 
257
<p style="margin-left:11%;"><b>set/unset regexp</b></p>
 
258
 
 
259
<p style="margin-left:15%;">Do regular expression searches
 
260
by default.</p>
 
261
 
 
262
<p style="margin-left:11%;"><b>set/unset smarthome</b></p>
 
263
 
 
264
<p style="margin-left:15%;">Make the Home key smarter. When
 
265
Home is pressed anywhere but at the very beginning of
 
266
non-whitespace characters on a line, the cursor will jump to
 
267
that beginning (either forwards or backwards). If the cursor
 
268
is already at that position, it will jump to the true
 
269
beginning of the line.</p>
 
270
 
 
271
<p style="margin-left:11%;"><b>set/unset smooth</b></p>
 
272
 
 
273
<p style="margin-left:15%;">Use smooth scrolling by
 
274
default.</p>
 
275
 
 
276
<p style="margin-left:11%;"><b>set speller</b>
 
277
<i>spellprog</i></p>
 
278
 
 
279
<p style="margin-left:15%;">Use spelling checker
 
280
<i>spellprog</i> instead of the built-in one, which calls
 
281
<i>spell</i>.</p>
 
282
 
 
283
<p style="margin-left:11%;"><b>set/unset suspend</b></p>
 
284
 
 
285
<p style="margin-left:15%;">Allow nano to be suspended.</p>
 
286
 
 
287
<p style="margin-left:11%;"><b>set tabsize</b> <i>n</i></p>
 
288
 
 
289
<p style="margin-left:15%;">Use a tab size of <i>n</i>
 
290
columns. The value of <i>n</i> must be greater than 0. The
 
291
default value is 8.</p>
 
292
 
 
293
<p style="margin-left:11%;"><b>set/unset
 
294
tabstospaces</b></p>
 
295
 
 
296
<p style="margin-left:15%;">Convert typed tabs to
 
297
spaces.</p>
 
298
 
 
299
<p style="margin-left:11%;"><b>set/unset tempfile</b></p>
 
300
 
 
301
<p style="margin-left:15%;">Save automatically on exit,
 
302
don&rsquo;t prompt.</p>
 
303
 
 
304
<p style="margin-left:11%;"><b>set/unset view</b></p>
 
305
 
 
306
<p style="margin-left:15%;">Disallow file modification.</p>
 
307
 
 
308
<p style="margin-left:11%;"><b>set whitespace</b>
 
309
<i>string</i></p>
 
310
 
 
311
<p style="margin-left:15%;">Set the two characters used to
 
312
display the first characters of tabs and spaces. They must
 
313
be single-column characters.</p>
 
314
 
 
315
<p style="margin-left:11%;"><b>set/unset wordbounds</b></p>
 
316
 
 
317
<p style="margin-left:15%;">Detect word boundaries more
 
318
accurately by treating punctuation characters as part of a
 
319
word.</p>
 
320
 
 
321
<p style="margin-left:11%;"><b>syntax</b> <i>str</i>
 
322
<b>[&quot;</b><i>fileregex</i><b>&quot; ... ]</b></p>
 
323
 
 
324
<p style="margin-left:15%;">Defines a syntax named
 
325
<i>str</i> which can be activated via the <b>-Y</b> flag, or
 
326
will be automatically activated if the current filename
 
327
matches <i>fileregex</i>. All following <b>color</b> and
 
328
<b>icolor</b> statements will apply to <i>syntax</i> until a
 
329
new syntax is defined.</p>
 
330
 
 
331
<p style="margin-left:15%; margin-top: 1em">The <i>none</i>
 
332
syntax is reserved; specifying it on the command line is the
 
333
same as not having a syntax at all. The <i>default</i>
 
334
syntax is special: it takes no <i>fileregex</i>, and applies
 
335
to files that don&rsquo;t match any other syntax&rsquo;s
 
336
<i>fileregex</i>.</p>
 
337
 
 
338
<p style="margin-left:11%;"><b>color</b>
 
339
<i>fgcolor</i><b>,</b><i>bgcolor regex</i> <b>...</b></p>
 
340
 
 
341
<p style="margin-left:15%;">For the currently defined
 
342
syntax, display all expressions matching <i>regex</i> with
 
343
foreground color <i>fgcolor</i> and background color
 
344
<i>bgcolor</i>, at least one of which must be specified.
 
345
Legal colors for foreground and background color are: white,
 
346
black, red, blue, green, yellow, magenta, and cyan. You may
 
347
use the prefix &quot;bright&quot; to force a stronger color
 
348
highlight for the foreground. If your terminal supports
 
349
transparency, not specifying a <i>bgcolor</i> tells
 
350
<b>nano</b> to attempt to use a transparent background.</p>
 
351
 
 
352
<p style="margin-left:11%;"><b>icolor</b>
 
353
<i>fgcolor</i><b>,</b><i>bgcolor regex</i> <b>...</b></p>
 
354
 
 
355
<p style="margin-left:15%;">Same as above, except that the
 
356
expression matching is case insensitive.</p>
 
357
 
 
358
<p style="margin-left:11%;"><b>color</b>
 
359
<i>fgcolor</i><b>,</b><i>bgcolor</i>
 
360
<b>start=&quot;</b><i>sr</i><b>&quot;
 
361
end=&quot;</b><i>er</i><b>&quot;</b></p>
 
362
 
 
363
<p style="margin-left:15%;">Display expressions which start
 
364
with <i>sr</i> and end with <i>er</i> with foreground color
 
365
<i>fgcolor</i> and background color <i>bgcolor</i>, at least
 
366
one of which must be specified. This allows syntax
 
367
highlighting to span multiple lines. Note that all
 
368
subsequent instances of <i>sr</i> after an initial <i>sr</i>
 
369
is found will be highlighted until the first instance of
 
370
<i>er</i>.</p>
 
371
 
 
372
<p style="margin-left:11%;"><b>icolor</b>
 
373
<i>fgcolor</i><b>,</b><i>bgcolor</i>
 
374
<b>start=&quot;</b><i>sr</i><b>&quot;
 
375
end=&quot;</b><i>er</i><b>&quot;</b></p>
 
376
 
 
377
<p style="margin-left:15%;">Same as above, except that the
 
378
expression matching is case insensitive.</p>
 
379
 
876
380
<a name="FILES"></a>
877
381
<h2>FILES</h2>
878
 
<!-- INDENTATION -->
879
 
<table width="100%" border=0 rules="none" frame="void"
880
 
       cols="2" cellspacing="0" cellpadding="0">
881
 
<tr valign="top" align="left">
882
 
<td width="11%"></td>
883
 
<td width="89%">
884
 
<p><i>SYSCONFDIR/nanorc</i></p></td>
885
 
</table>
886
 
<!-- INDENTATION -->
887
 
<table width="100%" border=0 rules="none" frame="void"
888
 
       cols="2" cellspacing="0" cellpadding="0">
889
 
<tr valign="top" align="left">
890
 
<td width="22%"></td>
891
 
<td width="78%">
892
 
<p>System-wide configuration file</p>
893
 
</td>
894
 
</table>
895
 
<!-- INDENTATION -->
896
 
<table width="100%" border=0 rules="none" frame="void"
897
 
       cols="2" cellspacing="0" cellpadding="0">
898
 
<tr valign="top" align="left">
899
 
<td width="11%"></td>
900
 
<td width="89%">
901
 
<p><i>~/.nanorc</i></p></td>
902
 
</table>
903
 
<!-- INDENTATION -->
904
 
<table width="100%" border=0 rules="none" frame="void"
905
 
       cols="2" cellspacing="0" cellpadding="0">
906
 
<tr valign="top" align="left">
907
 
<td width="22%"></td>
908
 
<td width="78%">
909
 
<p>Per-user configuration file</p>
910
 
</td>
911
 
</table>
 
382
 
 
383
 
 
384
 
 
385
<p style="margin-left:11%; margin-top: 1em"><i>SYSCONFDIR/nanorc</i></p>
 
386
 
 
387
<p style="margin-left:22%;">System-wide configuration
 
388
file</p>
 
389
 
 
390
<p style="margin-left:11%;"><i>~/.nanorc</i></p>
 
391
 
 
392
<p style="margin-left:22%;">Per-user configuration file</p>
 
393
 
912
394
<a name="SEE ALSO"></a>
913
395
<h2>SEE ALSO</h2>
914
 
<!-- INDENTATION -->
915
 
<table width="100%" border=0 rules="none" frame="void"
916
 
       cols="2" cellspacing="0" cellpadding="0">
917
 
<tr valign="top" align="left">
918
 
<td width="11%"></td>
919
 
<td width="89%">
920
 
<p><b>nano</b>(1)</p></td>
921
 
</table>
922
 
<!-- INDENTATION -->
923
 
<table width="100%" border=0 rules="none" frame="void"
924
 
       cols="2" cellspacing="0" cellpadding="0">
925
 
<tr valign="top" align="left">
926
 
<td width="11%"></td>
927
 
<td width="89%">
928
 
<p><i>/usr/share/doc/nano/examples/nanorc.sample</i> (or
929
 
equivalent on your system)</p></td>
930
 
</table>
 
396
 
 
397
 
 
398
<p style="margin-left:11%; margin-top: 1em"><b>nano</b>(1)
 
399
<i><br>
 
400
/usr/share/doc/nano/examples/nanorc.sample</i> (or
 
401
equivalent on your system)</p>
 
402
 
931
403
<a name="AUTHOR"></a>
932
404
<h2>AUTHOR</h2>
933
 
<!-- INDENTATION -->
934
 
<table width="100%" border=0 rules="none" frame="void"
935
 
       cols="2" cellspacing="0" cellpadding="0">
936
 
<tr valign="top" align="left">
937
 
<td width="11%"></td>
938
 
<td width="89%">
939
 
<p>Chris Allegretta &lt;chrisa@asty.org&gt;, et al (see
940
 
<i>AUTHORS</i> and <i>THANKS</i> for details). This manual
941
 
page was written by Jordi Mallach &lt;jordi@gnu.org&gt;.</p>
942
 
</td>
943
 
</table>
 
405
 
 
406
 
 
407
<p style="margin-left:11%;">Chris Allegretta
 
408
&lt;chrisa@asty.org&gt;, et al (see <i>AUTHORS</i> and
 
409
<i>THANKS</i> for details). This manual page was written by
 
410
Jordi Mallach &lt;jordi@gnu.org&gt;.</p>
944
411
<hr>
945
412
</body>
946
413
</html>