[rc] add nmam and nmam3 aliases for extracting patches from notmuch
authorAmin Bandali <mab@gnu.org>
Sat, 4 Aug 2018 22:58:42 +0000 (18:58 -0400)
committerAmin Bandali <mab@gnu.org>
Sat, 4 Aug 2018 22:58:42 +0000 (18:58 -0400)
kudos and thanks to @bremner

rc.org

diff --git a/rc.org b/rc.org
index 5327f2a..1ac68f8 100644 (file)
--- a/rc.org
+++ b/rc.org
@@ -686,6 +686,8 @@ timeout = 0
     pr = pull --rebase
     ps = push
     psf = push --force
+    nmam = "!f() { notmuch show --format=raw $1 | git am -; }; f"
+    nmam3 = "!f() { notmuch show --format=raw $1 | git am -3 -; }; f"
 #+end_src
 
 **** color
@@ -2215,6 +2217,7 @@ notmuch tag -inbox +lists/hackernewsletter -- folder:amin/lists/hackernewsletter
 notmuch tag -inbox +lists/haskell-weekly   -- folder:amin/lists/haskell-weekly
 
 notmuch tag -inbox +pay -- folder:amin/pay
+notmuch tag -inbox +banking -- folder:amin/banking
 # </aminb>
 
 # <uw>