diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2023-10-29 18:03:05 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2023-10-29 18:03:05 -0400 |
commit | 1431cbb21af7e6a270d63e75158d32f8b35f357a (patch) | |
tree | b0d30ed30e1ad997c3f01181481f572280fd4128 /emacs | |
parent | af4bc84e7b1c3a0ed53c0f601fd5cbd0939a5922 (diff) |
Add email settings
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.config/emacs-kj/lisp/kj-email.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs/.config/emacs-kj/lisp/kj-email.el b/emacs/.config/emacs-kj/lisp/kj-email.el new file mode 100644 index 0000000..2ab75f4 --- /dev/null +++ b/emacs/.config/emacs-kj/lisp/kj-email.el @@ -0,0 +1,15 @@ +;;; -*- lexical-binding: t; -*- + +(setq kj/fastmail-maildir (expand-file-name "~/Maildir/fastmail")) + +(when (file-exists-p kj/fastmail-maildir) + (use-package notmuch) + + (setq message-mail-user-agent 'message-user-agent + message-kill-buffer-on-exit t + message-send-mail-function 'message-send-mail-with-sendmail) + + (setq sendmail-program "mujmap" + message-sendmail-extra-arguments (list "-C" kj/fastmail-maildir "send"))) + +(provide 'kj-email) |