Re: Hi all
[notmuch-archives.git] / 1d / 39c2dad08f9cfd7f0768002aca40cac14c631a
1 Return-Path: <dmitry.kurochkin@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 40C0C40B945\r
6         for <notmuch@notmuchmail.org>; Thu,  1 Jul 2010 09:09:30 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.999\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13         DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001] autolearn=ham\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id HK5EWBPBKgBd for <notmuch@notmuchmail.org>;\r
17         Thu,  1 Jul 2010 09:09:18 -0700 (PDT)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53])\r
20         by olra.theworths.org (Postfix) with ESMTP id F350740B943\r
21         for <notmuch@notmuchmail.org>; Thu,  1 Jul 2010 09:09:04 -0700 (PDT)\r
22 Received: by mail-fx0-f53.google.com with SMTP id 19so1776530fxm.26\r
23         for <notmuch@notmuchmail.org>; Thu, 01 Jul 2010 09:09:04 -0700 (PDT)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
25         h=domainkey-signature:received:received:from:to:cc:subject:date\r
26         :message-id:x-mailer:in-reply-to:references;\r
27         bh=mAh2xpvKiFyTcRSLX/Q57UZwUIAdxUIbOSCa9XNmyVo=;\r
28         b=cPuacOYQeVltMuVvQLGhQqK6eVvm3fUs3b7E9kiCgiZ39kXspp8StTketa3iqQ38Da\r
29         3z2kVIwBenHM5cHDcwGEA1HaHes4jNxAFwLz71C/Hd/FpvtSsKsziDZRm2z79RWF/w6z\r
30         AAI2dt+ygfjdN0AD+PkGPBKJt9tXfeLx+upyQ=\r
31 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
32         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
33         b=NOdleRjjeMg9BpNtkCZfFM8m87HOZ2Wpe59V9dbLJgfo+CBVOrsrgipynGyi75wat0\r
34         msOTjDlMLJvKOfkbeo77qQ1jHdb8LBJ1daUmB4H53FBoBMHhK8iJ96RqwLC60QUPCqrT\r
35         YMoTZ27nvRVVJsMiUhCkfO0fXXE7CHzRhCYic=\r
36 Received: by 10.223.116.134 with SMTP id m6mr7836989faq.61.1278000544492;\r
37         Thu, 01 Jul 2010 09:09:04 -0700 (PDT)\r
38 Received: from localhost ([91.144.186.21])\r
39         by mx.google.com with ESMTPS id o11sm53488633fal.43.2010.07.01.09.09.03\r
40         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
41         Thu, 01 Jul 2010 09:09:03 -0700 (PDT)\r
42 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH 4/5] Add notmuch-hook. Called when notmuch is started,\r
45         before notmuch-hello buffer is created.\r
46 Date: Thu,  1 Jul 2010 20:08:26 +0400\r
47 Message-Id: <1278000507-22290-5-git-send-email-dmitry.kurochkin@gmail.com>\r
48 X-Mailer: git-send-email 1.7.1\r
49 In-Reply-To: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com>\r
50 References: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com>\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Thu, 01 Jul 2010 16:09:30 -0000\r
64 \r
65 ---\r
66  emacs/notmuch.el |    6 ++++++\r
67  1 files changed, 6 insertions(+), 0 deletions(-)\r
68 \r
69 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
70 index 5ab3df7..4900a27 100644\r
71 --- a/emacs/notmuch.el\r
72 +++ b/emacs/notmuch.el\r
73 @@ -185,6 +185,11 @@ For a mouse binding, return nil."\r
74        (set-buffer-modified-p nil)\r
75        (view-buffer (current-buffer) 'kill-buffer-if-not-modified))))\r
76  \r
77 +(defcustom notmuch-hook nil\r
78 +  "Functions to call when notmuch is started, before `notmuch-hello' buffer is created."\r
79 +  :group 'notmuch\r
80 +  :type 'hook)\r
81 +\r
82  (defcustom notmuch-search-hook '(hl-line-mode)\r
83    "List of functions to call when notmuch displays the search results."\r
84    :type 'hook\r
85 @@ -895,6 +900,7 @@ current search results AND that are tagged with the given tag."\r
86  (defun notmuch ()\r
87    "Run notmuch and display saved searches, known tags, etc."\r
88    (interactive)\r
89 +  (run-hooks 'notmuch-hook)\r
90    (notmuch-hello))\r
91  \r
92  (setq mail-user-agent 'notmuch-user-agent)\r
93 -- \r
94 1.7.1\r
95 \r