On Sun, 14 Nov 2010 22:07:03 +0100, Sebastian Spaeth <Sebastian at SSpaeth.de> 
wrote:
> > (define-key notmuch-search-mode-map "d"
> >   (lambda ()
> >     "delete thread and advance"
> >     (interactive)
> >     (notmuch-search-add-tag "deleted")
> >     (forward-line)))
> ...
> 
> This only works if you've already loaded notmuch, or you get error
> messages about notmuch-search-mode-map not being known. How do you deal
> with that or does it simply work for you?

`eval-after-load' is your friend.

dme.
-- 
David Edmondson, http://dme.org

Reply via email to