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 3A12040751A for ; Fri, 6 Jan 2012 13:43:17 -0800 (PST) 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 izeITCEODVmf for ; Fri, 6 Jan 2012 13:43:16 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 7F25240750E for ; Fri, 6 Jan 2012 13:43:16 -0800 (PST) Received: by eekd41 with SMTP id d41so1621040eek.26 for ; Fri, 06 Jan 2012 13:43:15 -0800 (PST) Received: by 10.213.20.147 with SMTP id f19mr1504136ebb.42.1325886194958; Fri, 06 Jan 2012 13:43:14 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id b49sm221944798eec.9.2012.01.06.13.43.12 (version=SSLv3 cipher=OTHER); Fri, 06 Jan 2012 13:43:13 -0800 (PST) From: Jani Nikula To: Antoine =?utf-8?Q?Beaupr=C3=A9?= , notmuch@notmuchmail.org Subject: Re: [PATCH] run notmuch-hello-mode-hook at the end of the hello mode setup In-Reply-To: <1312799218-10243-1-git-send-email-anarcat@koumbit.org> References: <1312799218-10243-1-git-send-email-anarcat@koumbit.org> User-Agent: Notmuch/0.10.2+182~g93862a2 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) Date: Fri, 06 Jan 2012 23:43:11 +0200 Message-ID: <877h148q34.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Fri, 06 Jan 2012 21:43:17 -0000 Hi, looks like a similar patch has been applied as commit db352df09e92171293eacf159342cd950ae596d0. BR, Jani. On Mon, 8 Aug 2011 12:26:58 +0200, Antoine Beaupr=C3=A9 wrote: > i mostly use this to start offlineimap.el, but it could be used for > other purposes. i have not added hooks to other modes, but those could > be interesting as well. i am unsure as to how to make unit tests for > this. > --- > emacs/notmuch-hello.el | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) >=20 > diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el > index 65fde75..6389ac8 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) >=20=20 > +(defcustom notmuch-hello-mode-hook nil > + "Hook run at the end of `notmuch-hello-mode'." > + :group 'notmuch > + :type 'hook) > + > (defvar notmuch-hello-url "http://notmuchmail.org" > "The `notmuch' web site.") >=20=20 > @@ -336,6 +341,7 @@ Complete list of currently available key bindings: > (setq major-mode 'notmuch-hello-mode > mode-name "notmuch-hello") > ;;(setq buffer-read-only t) > + (run-mode-hooks 'notmuch-hello-mode 'notmuch-hello-mode-hook) > ) >=20=20 > (defun notmuch-hello-generate-tag-alist () > --=20 > 1.7.2.5 >=20 > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch