vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 80ed659fc683362c6f7ab1287bb5432d5e0b1236 parent 16990ff3888f19ca7bdc818a5deb81e2fdc0d3db Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 6 Jan 2015 18:24:49 +0100 Add default settings for editor startup Diffstat:
| M | config.def.h | | | 5 | +++++ |
| M | vis.c | | | 1 | + |
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/config.def.h b/config.def.h @@ -854,6 +854,11 @@ static Config editors[] = { /* default editor configuration to use */ static Config *config = &editors[0]; +/* null terminated default settings/commands executed once on editor startup */ +static const char *settings[] = { + NULL +}; + /* Color definitions for use in the sytax highlighting rules below. A fore * or background color of -1 specifies the default terminal color. */ enum { diff --git a/vis.c b/vis.c @@ -2106,6 +2106,7 @@ int main(int argc, char *argv[]) { exec_command(cmd[0], cmd+1); } + settings_apply(settings); mainloop(); editor_free(vis); endwin();