diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 18:49:53 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 18:49:53 -0700 |
| commit | 7e47f1cea16741008c626fb39a1d6298064608cf (patch) | |
| tree | 7f57a77bf362cf35f14f31c86ca1c5e2b3039c5a /cfg.def.h | |
| parent | 1ee2efb9667af35d5e5ccfea6824701c2fdbce44 (diff) | |
move example commands to cfg.def.h
Diffstat (limited to 'cfg.def.h')
| -rw-r--r-- | cfg.def.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 + }, +}; |
