summaryrefslogtreecommitdiffhomepage
path: root/notmuch.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-01-30 19:02:31 +0000
committerjao <jao@gnu.org>2022-01-30 19:02:31 +0000
commit164110a45a1b4c2fe720426eae19a4cf0e763152 (patch)
tree7ba300ecbf9efa5e226af799ff616a49cf05f84e /notmuch.org
parent55b66ae6f6969d66941332461e2e815e4c5b5307 (diff)
downloadelibs-164110a45a1b4c2fe720426eae19a4cf0e763152.tar.gz
elibs-164110a45a1b4c2fe720426eae19a4cf0e763152.tar.bz2
mail: notmuch has a better attachment checker
Diffstat (limited to 'notmuch.org')
-rw-r--r--notmuch.org30
1 files changed, 16 insertions, 14 deletions
diff --git a/notmuch.org b/notmuch.org
index d433ecb..9fb3556 100644
--- a/notmuch.org
+++ b/notmuch.org
@@ -38,7 +38,7 @@
" "))
(jao-minibuffer-refresh)))
- (when jao-notmuch-enabled-p
+ (when jao-notmuch-enabled
(jao-minibuffer-add-variable 'jao-notmuch-minibuffer-string -20))
#+end_src
* saved searches
@@ -198,21 +198,23 @@
(use-package notmuch
:init
- :custom
- ((notmuch-address-use-company nil)
- (notmuch-address-command (if jao-notmuch-enabled-p 'internal 'as-is))
- (notmuch-draft-folder "drafts")
- (notmuch-draft-quoted-tags '("part"))
- (notmuch-address-internal-completion '(received nil))
- (notmuch-fcc-dirs
- '(("\\(support\\|education\\)@bigml.com" . nil)
- (".*@bigml.com" . "bigml/sent +bigml +sent -new")
- (".*" . "jao/trove +jao +sent +trove -new")))
- (notmuch-maildir-use-notmuch-insert t))
+ (setq notmuch-address-use-company nil
+ notmuch-address-command (if jao-notmuch-enabled 'internal 'as-is)
+ notmuch-always-prompt-for-sender t
+ notmuch-draft-folder "drafts"
+ notmuch-draft-quoted-tags '("part")
+ notmuch-address-internal-completion '(received nil)
+ notmuch-fcc-dirs
+ '(("\\(support\\|education\\)@bigml.com" . nil)
+ (".*@bigml.com" . "bigml/sent +bigml +sent -new")
+ (".*" . "jao/trove +jao +sent +trove -new"))
+ notmuch-maildir-use-notmuch-insert t)
:config
- (when jao-notmuch-enabled-p
+ (add-hook 'message-send-hook #'notmuch-mua-attachment-check)
+
+ (when jao-notmuch-enabled
(define-key message-mode-map (kbd "C-c C-d") #'notmuch-draft-postpone)
(setq message-directory "~/var/mail/"
message-auto-save-directory "/tmp"
@@ -564,7 +566,7 @@
#+end_src
* html render
#+begin_src emacs-lisp
- (when jao-notmuch-enabled-p (setq mm-text-html-renderer 'shr))
+ (when jao-notmuch-enabled (setq mm-text-html-renderer 'shr))
#+end_src
* consult
#+begin_src emacs-lisp