Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D43BA429E37 for ; Tue, 13 Dec 2011 09:32:32 -0800 (PST) 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 T-F+r+gUs-1f for ; Tue, 13 Dec 2011 09:32:32 -0800 (PST) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id 992F2429E2E for ; Tue, 13 Dec 2011 09:32:30 -0800 (PST) Received: from thor.loria.fr (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id EFF586A002C; Tue, 13 Dec 2011 18:32:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1323797550; bh=/jaal2R5IQDcfiSZI4aFrjcA1O0n3vCnBaU1n/+NlBk=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=OdpD4AlPDN0CtsI2k5yLb14PindTbWDeruoH2sP+P6pkquIh8UvF5ByNTj3SNYnpF BMu+Etb7zBHzJ8bqAIsdW0rcFB684hvYyZq/Rgo420le/0/HhdS+HihAEYzganx25Y Ugd8bShzCWX+mo0SNHK7WGUshMw/iVCGRpS9xQdo= From: Thomas Jost To: notmuch@notmuchmail.org Subject: [PATCH v3 4/4] emacs: add notmuch-hello-hook Date: Tue, 13 Dec 2011 18:32:12 +0100 Message-Id: <1323797532-597-5-git-send-email-schnouki@schnouki.net> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1323797532-597-1-git-send-email-schnouki@schnouki.net> References: <87d3cx2t38.fsf@rocinante.cs.unb.ca> <1323797532-597-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: Tue, 13 Dec 2011 17:32:33 -0000 This hook is called every time the notmuch-hello buffer is updated. --- 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 0fe9c1d..112b40b 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -131,6 +131,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. @@ -579,7 +584,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.8