aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.def.h5
-rw-r--r--vis.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 1edebba..e9c055a 100644
--- 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
index df995f5..30301d4 100644
--- 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();