From 78a253888eede22bba3fa549680cf0bb59d0928b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 22 Oct 2015 21:30:53 +0200 Subject: vis: remove config selection based on argv[0] I would still like to experiment with a busybox style editor multiplexer which behaves like vi(m), emacs or nano depending on argv[0]. --- editor.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'editor.h') diff --git a/editor.h b/editor.h index a9cc4ae..428839b 100644 --- a/editor.h +++ b/editor.h @@ -61,13 +61,6 @@ struct Mode { bool visual; /* whether text selection is possible in this mode */ }; -typedef struct { - char *name; /* is used to match against argv[0] to enable this config */ - Mode *mode; /* default mode in which the editor should start in */ - bool (*keypress)(const char *key); /* called before any other keybindings are checked, - * return value decides whether key should be ignored */ -} Config; - typedef struct { int count; /* how many times should the command be executed? */ Register *reg; /* always non-NULL, set to a default register */ -- cgit v1.2.3