diff options
author | Thomas Jost <schnouki@schnouki.net> | 2011-12-21 02:28:14 +0100 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-12-21 07:52:10 -0400 |
commit | 4e2fe89520c165a8ed77465eeecb175bba7e52c3 (patch) | |
tree | 0d145fa874abdabb9d4324f55277168c45c3a73d /emacs/notmuch-hello.el | |
parent | 77ec8108a10a8d372bed6298e22c89d7de651577 (diff) |
emacs: add notmuch-hello-refresh-hook
This hook is called every time a notmuch-hello buffer is updated.
Diffstat (limited to 'emacs/notmuch-hello.el')
-rw-r--r-- | emacs/notmuch-hello.el | 9 |
1 files changed, 8 insertions, 1 deletions
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." |