Skip to content

Instantly share code, notes, and snippets.

@adamwg
Created December 2, 2014 13:52
Show Gist options
  • Save adamwg/c860d4e905756eeaf7f5 to your computer and use it in GitHub Desktop.
Save adamwg/c860d4e905756eeaf7f5 to your computer and use it in GitHub Desktop.
(defun notmuch-show-previous-thread (&optional show-next)
"Move to the previous item in the search results, if any."
(interactive "P")
(let ((parent-buffer notmuch-show-parent-buffer))
(notmuch-kill-this-buffer)
(when parent-buffer
(switch-to-buffer parent-buffer)
(notmuch-search-previous-thread)
(if show-next
(notmuch-search-show-thread)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment