On Thu, 26 Jan 2012 14:48:44 +0100, Pieter Praet <pieter@praet.org> wrote: > 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 Thanks for the basic idea, iterated into: (define-key notmuch-hello-mode-map "S" (lambda() (interactive) (goto-char (point-min)) (re-search-forward "Search: "))) BR, Jani.