Re: [PATCH 1/3] emacs: bind "s" to `notmuch-search' in notmuch-hello buffer

Subject: Re: [PATCH 1/3] emacs: bind "s" to `notmuch-search' in notmuch-hello buffer

Date: Thu, 26 Jan 2012 14:48:44 +0100

To: Jani Nikula, Dmitry Kurochkin, notmuch@notmuchmail.org

Cc:

From: Pieter Praet


On Tue, 17 Jan 2012 23:22:30 +0200, Jani Nikula <jani@nikula.org> 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

Thread: