On Wed, 23 Nov 2011 17:41:49 +0100, suvayu ali wrote: > You can take pointers from here: > Yeah, I figured out a solution that works for me: (defadvice org-todo-list (before org-todo-gen-notmuch activate) (let ((buf (get-file-buffer "~/org/notmuch_todo.org"))) (when buf (kill-buffer buf))) (call-process "notmuch-org")) (Together with a not very interesting python script that generates notmuch_todo.org). Thanks anyway. Cheers, Daniel