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 8AE6F431FAF for ; Thu, 26 Jan 2012 05:50:43 -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 Jr+rW+GqUvOX for ; Thu, 26 Jan 2012 05:50:41 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 62D29431FAE for ; Thu, 26 Jan 2012 05:50:41 -0800 (PST) Received: by wibhi8 with SMTP id hi8so440227wib.26 for ; Thu, 26 Jan 2012 05:50:40 -0800 (PST) Received: by 10.180.101.161 with SMTP id fh1mr3700685wib.0.1327585840045; Thu, 26 Jan 2012 05:50:40 -0800 (PST) Received: from localhost ([109.131.116.159]) by mx.google.com with ESMTPS id m8sm12733450wia.11.2012.01.26.05.50.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Jan 2012 05:50:39 -0800 (PST) From: Pieter Praet To: Jani Nikula , Dmitry Kurochkin , notmuch@notmuchmail.org Subject: Re: [PATCH 1/3] emacs: bind "s" to `notmuch-search' in notmuch-hello buffer In-Reply-To: <874nvukort.fsf@nikula.org> References: <1326828850-8519-1-git-send-email-dmitry.kurochkin@gmail.com> <874nvukort.fsf@nikula.org> User-Agent: Notmuch/0.11+132~ga81001f (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) Date: Thu, 26 Jan 2012 14:48:44 +0100 Message-ID: <87zkdavakj.fsf@praet.org> 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: Thu, 26 Jan 2012 13:50:43 -0000 On Tue, 17 Jan 2012 23:22:30 +0200, Jani Nikula wrote: > [...] > > After this, what would the user have to do to bind some key to put the > point in the search box? If someone wants to restore old behaviour for > themselves. > This should work: #+begin_src emacs-lisp (add-hook 'notmuch-hello-mode-hook (lambda () (local-set-key (kbd "s") (lambda() (interactive) (re-search-forward "Search: "))))) #+end_src Peace -- Pieter