diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-06-05 23:08:38 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-06-05 23:13:53 -0400 |
commit | 4a32347513643b5b45e00a7e8c7d1fac8d8a4103 (patch) | |
tree | bcbebc478e0b885a51c27176216594a935749e3e | |
parent | 62760598b31f46cc96d1bed462ba84a80bac3641 (diff) | |
download | piem-4a32347513643b5b45e00a7e8c7d1fac8d8a4103.tar.gz |
notmuch: Drop piem-notmuch-executable
I just mindlessly added this, but I don't see any advantage of using a
separate variable rather than notmuch-command. And if the option were
to stay, it should default to notmuch-command.
Drop the piem-notmuch defgroup as well, since there are now no
options.
-rw-r--r-- | piem-notmuch.el | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/piem-notmuch.el b/piem-notmuch.el index dad5fb0..e454ab3 100644 --- a/piem-notmuch.el +++ b/piem-notmuch.el @@ -30,15 +30,6 @@ (require 'piem) (require 'subr-x) -(defgroup piem-notmuch nil - "Notmuch integration for piem." - :link '(info-link "(piem)Notmuch integration") - :group 'piem) - -(defcustom piem-notmuch-executable "notmuch" - "Which notmuch executable to use." - :type 'string) - (defmacro piem-notmuch--with-current-message (&rest body) (let ((rv (make-symbol "rv"))) `(let (,rv) @@ -63,11 +54,11 @@ (string-trim-right (with-output-to-string (with-current-buffer standard-output - (call-process piem-notmuch-executable + (call-process notmuch-command nil '(t nil) nil "search" "--output=messages" query))))) (lambda () - (call-process piem-notmuch-executable + (call-process notmuch-command nil '(t nil) nil "show" "--format=mbox" "--entire-thread=true" query))))) |