diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 20:05:58 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 20:05:58 -0700 |
| commit | 8a60b03a0119c5ae071952dd5915f2741b3fe4f2 (patch) | |
| tree | 6bf6d2aee186904c51250e964b3c5c185fe9018f /cfg.def.h | |
| parent | e15c139924df0b56f376ebdeb01c56852de50984 (diff) | |
allow name to be different from command
Diffstat (limited to 'cfg.def.h')
| -rw-r--r-- | cfg.def.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -45,7 +45,7 @@ static struct command browser_commands[] = { { .bind = "f", .name = "firefox", .nchildren = 0, .children = NULL }, }; -static const struct command commands[] = { +static struct command commands[] = { { .bind = "b", .name = "browsers", .nchildren = LENGTH(browser_commands), @@ -53,8 +53,9 @@ static const struct command commands[] = { }, { .bind = "e", - .name = "emacs-dev", - .children = NULL, + .name = "emacs", + .command = "emacs-dev", + .children = 0, .nchildren = 0 }, }; |
