Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / e2 / dfcde662da0e535957c2a11088bc25333e5b1d
1 Return-Path: <joyfulgirl@archlinux.us>\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 31E5E429E25\r
6         for <notmuch@notmuchmail.org>; Sat, 29 Oct 2011 09:37:52 -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: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id HvXfoxoJMRuJ for <notmuch@notmuchmail.org>;\r
16         Sat, 29 Oct 2011 09:37:51 -0700 (PDT)\r
17 Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
18         [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 9FFC1431FB6\r
21         for <notmuch@notmuchmail.org>; Sat, 29 Oct 2011 09:37:51 -0700 (PDT)\r
22 Received: by qadc1 with SMTP id c1so5600722qad.26\r
23         for <notmuch@notmuchmail.org>; Sat, 29 Oct 2011 09:37:51 -0700 (PDT)\r
24 Received: by 10.224.1.69 with SMTP id 5mr3939106qae.29.1319906270994;\r
25         Sat, 29 Oct 2011 09:37:50 -0700 (PDT)\r
26 Received: from localhost (209-6-79-248.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com.\r
27         [209.6.79.248])\r
28         by mx.google.com with ESMTPS id eg7sm20767547qab.2.2011.10.29.09.37.50\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Sat, 29 Oct 2011 09:37:50 -0700 (PDT)\r
31 From: Ivy Foster <joyfulgirl@archlinux.us>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 3/3] Add notmuch-hello-mode-hook\r
34 Date: Sat, 29 Oct 2011 12:35:04 -0400\r
35 Message-ID: <87hb2rlps7.fsf@nausicaa.localdomain>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain; charset=us-ascii\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Sat, 29 Oct 2011 16:37:52 -0000\r
51 \r
52 The following patch adds a mode-hook to notmuch-hello-mode.\r
53 Not much else to say, really.\r
54 \r
55 Would people find hooks for before and/or after adding the\r
56 tags useful? Or hooks elsewhere in this mode (or other\r
57 modes)?\r
58 \r
59 iff\r
60 \r
61 Signed-off-by: Ivy Foster <joyfulgirl@archlinux.us>\r
62 >From e8cdead0222fc85dd01d8a0185b54aed5e0a6e1e Mon Sep 17 00:00:00 2001\r
63 From: Ivy Foster <joyfulgirl@archlinux.us>\r
64 Date: Fri, 28 Oct 2011 23:47:16 -0400\r
65 Subject: [PATCH 3/3] Added notmuch-hello-mode-hook\r
66 \r
67 ---\r
68  emacs/notmuch-hello.el |    6 ++++++\r
69  1 files changed, 6 insertions(+), 0 deletions(-)\r
70 \r
71 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
72 index 1a213f0..13356c5 100644\r
73 --- a/emacs/notmuch-hello.el\r
74 +++ b/emacs/notmuch-hello.el\r
75 @@ -118,6 +118,11 @@ Typically \",\" in the US and UK and \".\" in Europe."\r
76    :group 'notmuch\r
77    :type 'string)\r
78  \r
79 +(defcustom notmuch-hello-mode-hook nil\r
80 +  "Functions called after entering `notmuch-hello-mode'."\r
81 +  :group 'notmuch\r
82 +  :type 'hook)\r
83 +\r
84  (defvar notmuch-hello-url "http://notmuchmail.org"\r
85    "The `notmuch' web site.")\r
86  \r
87 @@ -337,6 +342,7 @@ Complete list of currently available key bindings:\r
88   (use-local-map notmuch-hello-mode-map)\r
89   (setq major-mode 'notmuch-hello-mode\r
90         mode-name "notmuch-hello")\r
91 + (run-mode-hooks 'notmuch-hello-mode-hook)\r
92   ;;(setq buffer-read-only t)\r
93  )\r
94  \r
95 -- \r
96 1.7.7.1\r
97 \r