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 31E5E429E25 for ; Sat, 29 Oct 2011 09:37:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 HvXfoxoJMRuJ for ; Sat, 29 Oct 2011 09:37:51 -0700 (PDT) Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9FFC1431FB6 for ; Sat, 29 Oct 2011 09:37:51 -0700 (PDT) Received: by qadc1 with SMTP id c1so5600722qad.26 for ; Sat, 29 Oct 2011 09:37:51 -0700 (PDT) Received: by 10.224.1.69 with SMTP id 5mr3939106qae.29.1319906270994; Sat, 29 Oct 2011 09:37:50 -0700 (PDT) Received: from localhost (209-6-79-248.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com. [209.6.79.248]) by mx.google.com with ESMTPS id eg7sm20767547qab.2.2011.10.29.09.37.50 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Oct 2011 09:37:50 -0700 (PDT) From: Ivy Foster To: notmuch@notmuchmail.org Subject: [PATCH 3/3] Add notmuch-hello-mode-hook Date: Sat, 29 Oct 2011 12:35:04 -0400 Message-ID: <87hb2rlps7.fsf@nausicaa.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Sat, 29 Oct 2011 16:37:52 -0000 The following patch adds a mode-hook to notmuch-hello-mode. Not much else to say, really. Would people find hooks for before and/or after adding the tags useful? Or hooks elsewhere in this mode (or other modes)? iff Signed-off-by: Ivy Foster >From e8cdead0222fc85dd01d8a0185b54aed5e0a6e1e Mon Sep 17 00:00:00 2001 From: Ivy Foster Date: Fri, 28 Oct 2011 23:47:16 -0400 Subject: [PATCH 3/3] Added notmuch-hello-mode-hook --- emacs/notmuch-hello.el | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 1a213f0..13356c5 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -118,6 +118,11 @@ Typically \",\" in the US and UK and \".\" in Europe." :group 'notmuch :type 'string) +(defcustom notmuch-hello-mode-hook nil + "Functions called after entering `notmuch-hello-mode'." + :group 'notmuch + :type 'hook) + (defvar notmuch-hello-url "http://notmuchmail.org" "The `notmuch' web site.") @@ -337,6 +342,7 @@ Complete list of currently available key bindings: (use-local-map notmuch-hello-mode-map) (setq major-mode 'notmuch-hello-mode mode-name "notmuch-hello") + (run-mode-hooks 'notmuch-hello-mode-hook) ;;(setq buffer-read-only t) ) -- 1.7.7.1