From 7e47f1cea16741008c626fb39a1d6298064608cf Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 18:49:53 -0700 Subject: move example commands to cfg.def.h --- cfg.def.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'cfg.def.h') diff --git a/cfg.def.h b/cfg.def.h index c9f864f..ad2c9cd 100644 --- a/cfg.def.h +++ b/cfg.def.h @@ -39,3 +39,22 @@ static struct scheme schemes[SchemeLast] = { }, }; +static struct command browser_commands[] = { + { .bind = "s", .name = "chrome", .nchildren = 0, .children = NULL }, + { .bind = "c", .name = "chromium", .nchildren = 0, .children = NULL }, + { .bind = "f", .name = "firefox", .nchildren = 0, .children = NULL }, +}; + +static const struct command commands[] = { + { .bind = "b", + .name = "browsers", + .nchildren = LENGTH(browser_commands), + .children = browser_commands + }, + + { .bind = "e", + .name = "emacs-dev", + .children = NULL, + .nchildren = 0 + }, +}; -- cgit v1.2.3