Notmuch: Simplify switcher using -interesting-buffer
parent
36b54d9a2e
commit
f137a82739
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue