From cab192d15a72e724dc4c20655c706cbf946fc751 Mon Sep 17 00:00:00 2001 From: Matt Nish-Lapidus Date: Fri, 21 Jun 2024 08:31:36 -0400 Subject: [PATCH] email config --- bindings.el | 10 ++++++++++ config.el | 22 ++++++++++++---------- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/bindings.el b/bindings.el index f807206..db14db1 100644 --- a/bindings.el +++ b/bindings.el @@ -468,6 +468,16 @@ "f" #'chezmoi-find "w" #'chezmoi-write) +(map! + :map mu4e-main-mode-map + :localleader + :desc "Compose" "c" #'compose-mail) + +(map! + :map mu4e-compose-mode-map + :localleader + :desc "Send message and exit" "s" #'message-send-and-exit) + (map! :map dired-mode-map "h" #'dired-up-directory diff --git a/config.el b/config.el index d29d942..9f18555 100644 --- a/config.el +++ b/config.el @@ -255,10 +255,15 @@ (mu4e-refile-folder . "/matt@emenel.ca/Archive") (mu4e-spam-folder . "/matt@emenel.ca/Spam") (smtpmail-smtp-user . "matt@emenel.ca") - (user-mail-address . "matt@emenel.ca") ;; only needed for mu < 1.4 + (user-mail-address . "matt@emenel.ca") ;; only needed for mu < 1.4 + (smtpmail-default-smtp-server . "smtp.fastmail.com") + (smtpmail-smtp-server . "smtp.fastmail.com") + (smtpmail-local-domain . "fastmail.com") (mu4e-compose-signature . "---")) t) + + (after! mu4e (setq mu4e-index-cleanup t @@ -267,6 +272,12 @@ message-kill-buffer-on-exit t) (setq mu4e-bookmarks nil) + (setq sendmail-program "/opt/homebrew/bin/msmtp" + send-mail-function 'smtpmail-send-it + message-sendmail-f-is-evil t + message-sendmail-extra-arguments '("--read-envelope-from") + message-send-mail-function 'message-send-mail-with-sendmail) + ;; spam (mu4e-bookmark-define "maildir:/matt@emenel.ca/Spam" @@ -296,15 +307,6 @@ (add-hook! mu4e-compose-mode (ws-butler-mode -1))) -;; (after! mu4e -;; (add-to-list 'mu4e-bookmarks -;; '( :name "Inbox" -;; :query "maildir:/INBOX" -;; :key ?i) -;; '( :name "Inbox Unread" -;; :query "maildir:/INBOX and flag:unread" -;; :key ?o))) - (use-package! kbd-mode) (server-start)