From 23f4065929de6c0438647725220915b7cdf6700b Mon Sep 17 00:00:00 2001
From: lassulus <git@lassul.us>
Date: Sat, 28 Jan 2023 21:27:42 +0100
Subject: [PATCH] l mail: add muchsync keybinding

---
 lass/2configs/mail.nix | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lass/2configs/mail.nix b/lass/2configs/mail.nix
index 098982892..f5b2e22b7 100644
--- a/lass/2configs/mail.nix
+++ b/lass/2configs/mail.nix
@@ -180,6 +180,15 @@ let
     macro index + "<modify-labels>+*\n<sync-mailbox>"         # tag as starred
     macro index - "<modify-labels>-*\n<sync-mailbox>"         # tag as unstarred
 
+    # muchsync
+    bind index \Cr noop
+    macro index \Cr \
+    "<enter-command>unset wait_key<enter> \
+    <shell-escape>${pkgs.writeDash "muchsync" ''
+      set -efu
+      ${pkgs.muchsync}/bin/muchsync -F lass@green.r
+    ''}<enter> \
+    'run muchsync to green.r'
 
     #killed
     bind index d noop