From 5d0402aeea1dcc69adb46227ab1cd73b5e768880 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 30 Mar 2019 21:45:41 -0400 Subject: Add message view commands, :close --- commands/msgview/msgview.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 commands/msgview/msgview.go (limited to 'commands/msgview/msgview.go') diff --git a/commands/msgview/msgview.go b/commands/msgview/msgview.go new file mode 100644 index 0000000..e3db828 --- /dev/null +++ b/commands/msgview/msgview.go @@ -0,0 +1,16 @@ +package msgview + +import ( + "git.sr.ht/~sircmpwn/aerc2/commands" +) + +var ( + MessageViewCommands *commands.Commands +) + +func register(name string, cmd commands.AercCommand) { + if MessageViewCommands == nil { + MessageViewCommands = commands.NewCommands() + } + MessageViewCommands.Register(name, cmd) +} -- cgit v1.2.3