From e47c2cd2f55c03d07e17267bfa04813abab62a84 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 24 Nov 2019 09:59:43 -0500 Subject: [PATCH] Add a fast remote update function to nm --- .emacs.d/init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 0e16a23..e44189f 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -785,7 +785,9 @@ :bind (:map nm-mode-map ("n" . nm-read) ("s" . nm-spam) - ("G" . nm-update-remote) + ("G" . nm-update-remote-fast) + ("C-G" . nm-update-remote) + ("M-g" . nm-reset) ("j" . next-line) ("k" . previous-line) ("N" . nm-sticky-tag-and-next)) @@ -833,6 +835,11 @@ (interactive) (shell-command "muchsync --upbg ag") (nm-refresh)) + (defun nm-update-remote-fast () + "Pull email from remote mailbox" + (interactive) + (shell-command "muchsync --upbg ag --nonew") + (nm-refresh)) (defvar nm-sticky-tags nil) (defun nm-sticky-tag-and-next (tags) (interactive