I use notmuch to read emails.
notmuch to call
When I press
G to refresh my
notmuch buffer, I want emacs to open my offlineimap log file in another window so I can see the sync process in real time.
Here's is what I've done:
(use-package notmuch :bind (:map notmuch-hello-mode-map ("G" . (lambda () (interactive) (find-file-other-window "~/Maildir/.notmuch/hooks/offlineimap.log") (notmuch-poll-and-refresh-this-buffer)))))
Problem with this is, emacs would only open the log file after sync is done.
How do I make emacs open the log file before notmuch and offlineimap action?