From: Thomas Jost Date: Wed, 21 Dec 2011 01:28:14 +0000 (+0100) Subject: emacs: add notmuch-hello-refresh-hook X-Git-Tag: 0.11_rc1~13 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=4e2fe89520c165a8ed77465eeecb175bba7e52c3;ds=sidebyside emacs: add notmuch-hello-refresh-hook This hook is called every time a notmuch-hello buffer is updated. --- diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 45cda2ec..f892ff73 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -143,6 +143,11 @@ Typically \",\" in the US and UK and \".\" in Europe." :group 'notmuch :type 'hook) +(defcustom notmuch-hello-refresh-hook nil + "Functions called after updating a `notmuch-hello' buffer." + :type 'hook + :group 'notmuch) + (defvar notmuch-hello-url "http://notmuchmail.org" "The `notmuch' web site.") @@ -590,7 +595,9 @@ Complete list of currently available key bindings: (widget-forward 1))) (unless (widget-at) - (notmuch-hello-goto-search))))) + (notmuch-hello-goto-search)))) + + (run-hooks 'notmuch-hello-refresh-hook)) (defun notmuch-folder () "Deprecated function for invoking notmuch---calling `notmuch' is preferred now."