-
Notifications
You must be signed in to change notification settings - Fork 1
/
varray.c
84 lines (81 loc) · 3.13 KB
/
varray.c
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* varray.c - defined the Zedit variables
* Copyright (C) 1988-2016 Sean MacLennan <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this project; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include "z.h"
#define V(n) {(char *)n}
struct avar Vars[] = {
{ "backup", V_FLAG, V(0),
"If set, a backup file is created when a file is written."
},
{ "c-extends", V_STRING, V(".c.h.cpp.cc.cxx.y.l"),
"This variable defines the extensions that turn on C mode."
},
{ "c-tabs", V_DECIMAL, V(4),
"This variable defines the number of spaces displayed per tab in "
"C mode buffers. See also tabs."
},
{ "comments", V_FLAG, V(1),
"If set then Zedit tries to bold (display in red) comments in C "
"and shell mode buffers."
},
{ "exact", V_FLAG, V(1),
"If set, all searches and replaces are case sensitive. This means "
"that the search string 'string' will only match 'string', not "
"'STRING', or 'String'."
},
{ "fill-ch-width", V_DECIMAL, V(72),
"This is the column at which the text mode commands wrap the "
"right margin."
},
{ "make-cmd", V_STRING, V("make "),
"The command to use for the make command."
},
{ "normal", V_FLAG, V(1),
"If set, the default buffer mode is Normal. If off, "
"the default buffer mode is Text. Some file extensions "
"override this variable."
},
{ "sh-extends", V_STRING, V(".sh.csh.el"),
"This variable defines the extensions that turn on shell mode. "
"Note that a '#!/bin/sh' type line at the start of the file can "
"also turn on shell mode."
},
{ "sh-tabs", V_DECIMAL, V(4),
"This variable defines the number of spaces displayed per indent in "
"shell mode buffers. If `space-tabs' is set, the indent will always be "
"spaces. Else, the indent will be a combination of physical tabs and "
"spaces."
},
{ "space-tabs", V_FLAG, V(0),
"The tab character is normally inserted into the buffer as a "
"single ASCII 9 character. If the space-tabs variable is set, "
"then a tab is inserted as spaces in the buffer. This flag "
"does not affect tabs already in the buffer or tabs inserted "
"in the PAW."
},
{ "t-extends", V_STRING, V(".txt"),
"This variable defines the extensions that turn on text mode."
},
{ "tabs", V_DECIMAL, V(8),
"A tab is a single character that is displayed as one or more "
"spaces on the screen. This variable defines the number of "
"space characters displayed per physical tab.\n\n"
"You generally don't want to change this. See `c-tabs' and "
"`sh-tabs'."
},
};