Notmuch: Simplify switcher using -interesting-buffer
parent
36b54d9a2e
commit
f137a82739
|
@ -32,14 +32,7 @@
|
||||||
(when (require 'patch-helm nil 'noerror)
|
(when (require 'patch-helm nil 'noerror)
|
||||||
(helm-defswitcher
|
(helm-defswitcher
|
||||||
"notmuch"
|
"notmuch"
|
||||||
(lambda (b)
|
#'notmuch-interesting-buffer
|
||||||
(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-hello))
|
notmuch-hello))
|
||||||
|
|
||||||
(when (require 'helm-notmuch nil t)
|
(when (require 'helm-notmuch nil t)
|
||||||
|
|
Loading…
Reference in New Issue