-
Notifications
You must be signed in to change notification settings - Fork 2
/
conf.h
executable file
·109 lines (102 loc) · 1.93 KB
/
conf.h
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* vim: set noexpandtab:tabstop=8 */
#define KWD_MAX 128
enum style_flag {
BOLD_STYLE = 1,
ITALIC_STYLE = 2,
UNDERLINE_STYLE = 4,
ALL_CAPS_STYLE = 8,
SMALL_CAPS_STYLE = 16,
};
struct textstyle {
enum style_flag style;
unsigned color;
};
struct conf {
int bg;
int fg;
int bg2;
int cursor_colour;
int brace_bg;
int bad_brace_bg;
int selbg;
int isearchbg;
int bookmarkbg;
int bookmarkfg;
int current_line_bg;
int gutterbg;
int gutterfg;
int default_style;
int chrome_bg;
int chrome_fg;
int grid_colour;
struct textstyle style[8];
/* Font specifications */
wchar_t fontname[128];
wchar_t fontfeatures[128];
double fontsz;
double fontasp;
int fontweight;
int fontitalic;
double leading;
wchar_t backing_font[128][8];
int nbacking_fonts;
} conf;
struct file {
int tabc;
int usetabs;
int usebom;
int usecrlf;
} file;
struct {
int line_width;
int ruler;
double alpha;
double gamma;
double gfx_flatness;
double gfx_subsamples;
int grid_enabled;
wchar_t shell[128];
int fixed_margin;
int line_numbers;
int center;
int minimap;
int match_braces;
int highlight_sel;
int undo_time;
int cursor_fps;
double cursor_overwrite_width;
double cursor_insert_width;
wchar_t ui_font_name[128];
double ui_font_small_size;
double ui_font_large_size;
wchar_t alignables[128];
} global;
struct lang {
wchar_t ext[128];
wchar_t comment[128];
wchar_t brk[128];
wchar_t brace[128];
wchar_t quotes[128];
wchar_t kwd_re[KWD_MAX][256];
wchar_t kwd_comp[KWD_MAX][256];
wchar_t kwd_color[KWD_MAX];
unsigned kwd_opt[KWD_MAX];
wchar_t cmdwrapper[128];
int nkwd;
int autoClose;
int typeover;
} lang;
struct scheme {
wchar_t filename[128];
unsigned color[16];
unsigned bg;
unsigned fg;
unsigned cursor_colour;
} scheme;
wchar_t *configfile;
int nconfs;
int curconf;
struct conf confset[32];
int nlangs;
int curlang;
struct lang langset[32];