commit 4eb5b7730cf79380a5a2bcfe2473a1f8654a7803
parent 2fddb8ce4d38f008bd6a8670ebe295d5f533f167
Author: Mark Feller <mark@getsunday.com>
Date: Mon, 28 Sep 2020 20:01:59 -0600
tweak notmuch config and environment
Diffstat:
4 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/dots/.config/emacs/core/core-macos.el b/dots/.config/emacs/core/core-macos.el
@@ -38,7 +38,10 @@
(use-package exec-path-from-shell
:demand
- :config (exec-path-from-shell-initialize))
+ :config
+ (exec-path-from-shell-initialize)
+ (exec-path-from-shell-copy-env "GNUPGHOME")
+ (exec-path-from-shell-copy-env "NOTMUCH_CONFIG"))
(defun finder ()
"Opens file directory in Finder."
diff --git a/dots/.config/emacs/lisp/init-local.el b/dots/.config/emacs/lisp/init-local.el
@@ -36,5 +36,8 @@
))
(mjf/initialize-gmail)
+(setq user-mail-address "mark@getsunday.com")
+(setq mml-secure-smime-sign-with-sender "mark@getsunday.com")
+(setq message-signature-file "~/.local/share/emacs/signature")
(provide 'init-local)
diff --git a/dots/.config/emacs/modules/module-notmuch.el b/dots/.config/emacs/modules/module-notmuch.el
@@ -40,7 +40,7 @@
"Tag mail at point as deleted. This operation will not delete
the mail, but tag it for later deletion."
(interactive)
- (notmuch-search-tag '("+deleted" "-inbox" "-unread"))
+ (notmuch-search-tag '("+deleted" "-unread"))
(next-line))
(defun mjf/delete-tagged-mail ()
@@ -53,8 +53,8 @@ the mail, but tag it for later deletion."
"Fetch mail using getmail"
(interactive)
(message "Fetching mail...")
- (shell-command "getmail")
- (notmuch-hello-update))
+ (shell-command "getmail --getmaildir=$HOME/.config/getmail")
+ (notmuch-poll-and-refresh-this-buffer))
(use-package notmuch
:bind
diff --git a/dots/.zshenv b/dots/.zshenv
@@ -35,3 +35,5 @@ export PASH_CLIP=pbcopy
export PASH_TIMEOUT=off
export GNUPGHOME=$HOME/.local/share/gnupg
+
+export NOTMUCH_CONFIG=$HOME/.config/notmuch/config