Notmuch: Simplify switcher using -interesting-buffer

master
Pierre Neidhardt 2019-03-20 11:14:59 +01:00
parent 36b54d9a2e
commit f137a82739
1 changed files with 1 additions and 8 deletions

View File

@ -32,14 +32,7 @@
(when (require 'patch-helm nil 'noerror)
(helm-defswitcher
"notmuch"
(lambda (b)
(with-current-buffer b
(or
(derived-mode-p 'notmuch-hello-mode)
(derived-mode-p 'notmuch-search-mode)
(derived-mode-p 'notmuch-tree-mode)
(derived-mode-p 'notmuch-show-mode)
(derived-mode-p 'notmuch-message-mode))))
#'notmuch-interesting-buffer
notmuch-hello))
(when (require 'helm-notmuch nil t)