From 8a60b03a0119c5ae071952dd5915f2741b3fe4f2 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 20:05:58 -0700 Subject: allow name to be different from command --- cfg.def.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cfg.def.h') diff --git a/cfg.def.h b/cfg.def.h index ad2c9cd..0ddbb5d 100644 --- a/cfg.def.h +++ b/cfg.def.h @@ -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 }, }; -- cgit v1.2.3