--- /dev/null
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 3CDD5431FAF\r
+ for <notmuch@notmuchmail.org>; Thu, 26 Jan 2012 06:13:46 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id Nhp2V59NToW9 for <notmuch@notmuchmail.org>;\r
+ Thu, 26 Jan 2012 06:13:45 -0800 (PST)\r
+Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
+ [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id A2B61431FAE\r
+ for <notmuch@notmuchmail.org>; Thu, 26 Jan 2012 06:13:45 -0800 (PST)\r
+Received: by qabg24 with SMTP id g24so592903qab.5\r
+ for <notmuch@notmuchmail.org>; Thu, 26 Jan 2012 06:13:45 -0800 (PST)\r
+Received: by 10.224.177.203 with SMTP id bj11mr2789330qab.37.1327587224985;\r
+ Thu, 26 Jan 2012 06:13:44 -0800 (PST)\r
+Received: from localhost (nikula.org. [92.243.24.172])\r
+ by mx.google.com with ESMTPS id g17sm8770909qad.3.2012.01.26.06.13.42\r
+ (version=SSLv3 cipher=OTHER); Thu, 26 Jan 2012 06:13:43 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Pieter Praet <pieter@praet.org>,\r
+ Dmitry Kurochkin <dmitry.kurochkin@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/3] emacs: bind "s" to `notmuch-search' in notmuch-hello\r
+ buffer\r
+In-Reply-To: <87zkdavakj.fsf@praet.org>\r
+References: <1326828850-8519-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+ <874nvukort.fsf@nikula.org> <87zkdavakj.fsf@praet.org>\r
+User-Agent: Notmuch/0.10.2+187~g43d4f26 (http://notmuchmail.org) Emacs/23.1.1\r
+ (i686-pc-linux-gnu)\r
+Date: Thu, 26 Jan 2012 14:13:40 +0000\r
+Message-ID: <87k44eimaz.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 26 Jan 2012 14:13:46 -0000\r
+\r
+On Thu, 26 Jan 2012 14:48:44 +0100, Pieter Praet <pieter@praet.org> wrote:\r
+> On Tue, 17 Jan 2012 23:22:30 +0200, Jani Nikula <jani@nikula.org> wrote:\r
+> > [...]\r
+> > \r
+> > After this, what would the user have to do to bind some key to put the\r
+> > point in the search box? If someone wants to restore old behaviour for\r
+> > themselves.\r
+> > \r
+> \r
+> This should work:\r
+> \r
+> #+begin_src emacs-lisp\r
+> (add-hook 'notmuch-hello-mode-hook\r
+> (lambda ()\r
+> (local-set-key (kbd "s")\r
+> (lambda() (interactive)\r
+> (re-search-forward "Search: ")))))\r
+> #+end_src\r
+\r
+Thanks for the basic idea, iterated into:\r
+\r
+(define-key notmuch-hello-mode-map "S"\r
+ (lambda() (interactive)\r
+ (goto-char (point-min))\r
+ (re-search-forward "Search: ")))\r
+\r
+\r
+BR,\r
+Jani.\r