From 855a1acf28a8e68659fb084018a564c2d59e2c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 6 Jan 2015 18:24:49 +0100 Subject: Add default settings for editor startup --- config.def.h | 5 +++++ vis.c | 1 + 2 files changed, 6 insertions(+) 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(); -- cgit v1.2.3