1 Return-Path: <jani@nikula.org>
\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 3CDD5431FAF
\r
6 for <notmuch@notmuchmail.org>; Thu, 26 Jan 2012 06:13:46 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 Nhp2V59NToW9 for <notmuch@notmuchmail.org>;
\r
16 Thu, 26 Jan 2012 06:13:45 -0800 (PST)
\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 A2B61431FAE
\r
21 for <notmuch@notmuchmail.org>; Thu, 26 Jan 2012 06:13:45 -0800 (PST)
\r
22 Received: by qabg24 with SMTP id g24so592903qab.5
\r
23 for <notmuch@notmuchmail.org>; Thu, 26 Jan 2012 06:13:45 -0800 (PST)
\r
24 Received: by 10.224.177.203 with SMTP id bj11mr2789330qab.37.1327587224985;
\r
25 Thu, 26 Jan 2012 06:13:44 -0800 (PST)
\r
26 Received: from localhost (nikula.org. [92.243.24.172])
\r
27 by mx.google.com with ESMTPS id g17sm8770909qad.3.2012.01.26.06.13.42
\r
28 (version=SSLv3 cipher=OTHER); Thu, 26 Jan 2012 06:13:43 -0800 (PST)
\r
29 From: Jani Nikula <jani@nikula.org>
\r
30 To: Pieter Praet <pieter@praet.org>,
\r
31 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>, notmuch@notmuchmail.org
\r
32 Subject: Re: [PATCH 1/3] emacs: bind "s" to `notmuch-search' in notmuch-hello
\r
34 In-Reply-To: <87zkdavakj.fsf@praet.org>
\r
35 References: <1326828850-8519-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
36 <874nvukort.fsf@nikula.org> <87zkdavakj.fsf@praet.org>
\r
37 User-Agent: Notmuch/0.10.2+187~g43d4f26 (http://notmuchmail.org) Emacs/23.1.1
\r
39 Date: Thu, 26 Jan 2012 14:13:40 +0000
\r
40 Message-ID: <87k44eimaz.fsf@nikula.org>
\r
42 Content-Type: text/plain; charset=us-ascii
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Thu, 26 Jan 2012 14:13:46 -0000
\r
57 On Thu, 26 Jan 2012 14:48:44 +0100, Pieter Praet <pieter@praet.org> wrote:
\r
58 > On Tue, 17 Jan 2012 23:22:30 +0200, Jani Nikula <jani@nikula.org> wrote:
\r
61 > > After this, what would the user have to do to bind some key to put the
\r
62 > > point in the search box? If someone wants to restore old behaviour for
\r
68 > #+begin_src emacs-lisp
\r
69 > (add-hook 'notmuch-hello-mode-hook
\r
71 > (local-set-key (kbd "s")
\r
72 > (lambda() (interactive)
\r
73 > (re-search-forward "Search: ")))))
\r
76 Thanks for the basic idea, iterated into:
\r
78 (define-key notmuch-hello-mode-map "S"
\r
79 (lambda() (interactive)
\r
80 (goto-char (point-min))
\r
81 (re-search-forward "Search: ")))
\r