From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A3CE1429E2E for ; Mon, 3 Oct 2011 05:04:12 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wEc---4ippSC for ; Mon, 3 Oct 2011 05:04:08 -0700 (PDT) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id 87CFC429E25 for ; Mon, 3 Oct 2011 05:04:08 -0700 (PDT) Received: from localhost.localdomain (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id 5B6A16A06B2; Mon, 3 Oct 2011 14:04:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1317643447; bh=Y/7hdGQkX+pBgQp+3my8fZX+SIc9xhupzz+ZhqCUYm0=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=KDnRImD0sb/itW6EADtFlYocLm9uPaVTh0aLpkQMiJsU7Ktgj9G/hmFfh+I+m+Gq0 B67+BzqRnSXfddJR3EGwv3+JrQUDP8/kUjMr0ugZ1NqJ4p2MyW06s5k9Bcrg/OhPMR koZUP+ewQ1aWoDFWGlkkF+ZAABmLfHJF8YTmp9JE= From: Thomas Jost To: notmuch@notmuchmail.org Subject: [PATCH 4/4] emacs: add notmuch-hello-hook Date: Mon, 3 Oct 2011 14:03:58 +0200 Message-Id: <1317643438-31272-5-git-send-email-schnouki@schnouki.net> X-Mailer: git-send-email 1.7.6.4 In-Reply-To: <1317643438-31272-1-git-send-email-schnouki@schnouki.net> References: <1317643438-31272-1-git-send-email-schnouki@schnouki.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 12:04:12 -0000 --- 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 1cf95d7..00bb5ce 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -111,6 +111,11 @@ So: (integer :tag "Number of characters") (float :tag "Fraction of window"))) +(defcustom notmuch-hello-hook nil + "Functions called after populating a `notmuch-hello' buffer." + :type 'hook + :group 'notmuch) + (defcustom notmuch-thousands-separator "," "The string used as a thousands separator. @@ -551,7 +556,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-hook)))) (defun notmuch-folder () "Deprecated function for invoking notmuch---calling `notmuch' is preferred now." -- 1.7.6.4