aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/config/rul-config-mail.el
diff options
context:
space:
mode:
authorRaul Benencia <id@rbenencia.name>2023-02-12 14:56:00 -0800
committerRaul Benencia <id@rbenencia.name>2023-02-12 15:22:37 -0800
commitf6a1ec5f84ed246205c55d55092b2140a27f245b (patch)
tree6655a35012ef81be1b8e2941202907e2cfb84f3c /.emacs.local.d/config/rul-config-mail.el
parentc0afd2e92baf0729910f1f60065c7cd29f19226f (diff)
emacs: auto-load config files
Diffstat (limited to '.emacs.local.d/config/rul-config-mail.el')
-rw-r--r--.emacs.local.d/config/rul-config-mail.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/.emacs.local.d/config/rul-config-mail.el b/.emacs.local.d/config/rul-config-mail.el
new file mode 100644
index 0000000..143bbc3
--- /dev/null
+++ b/.emacs.local.d/config/rul-config-mail.el
@@ -0,0 +1,15 @@
+;; Mutt support.
+(setq auto-mode-alist (append '((".*tmp/mutt.*" . message-mode)) auto-mode-alist))
+(setq auto-mode-alist (append '((".*tmp/neomutt.*" . message-mode)) auto-mode-alist))
+
+;; Hook up `mutt:...` style URLs
+(use-package ol-notmuch :ensure t)
+(org-add-link-type "message" 'org-notmuch-open)
+
+(setq send-mail-function 'sendmail-send-it
+ sendmail-program "/usr/bin/msmtp"
+ mail-specify-envelope-from t
+ message-sendmail-envelope-from 'header
+ mail-envelope-from 'header)
+
+(provide 'rul-config-mail)
nihil fit ex nihilo