From b27d60d68b1083a8cedf3586226285a26b70a7ce Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 18 Mar 2021 01:14:28 +0100 Subject: [PATCH] Enable mail plugin --- config.org | 41 +++++++++++++++++++++++++++++++++++++++++ init.el | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 43d18cf..15580fe 100644 --- a/config.org +++ b/config.org @@ -40,6 +40,9 @@ - [[#doom-specific][Doom specific]] - [[#magit][Magit]] - [[#gitlab-ci-skip-flag][Gitlab CI skip flag]] +- [[#email][Email]] + - [[#account-configuration][Account configuration]] + - [[#disable-org-msg-by-default][Disable =org-msg= by default]] * Misc @@ -520,3 +523,41 @@ not ready yet. #+END_SRC GitLab push options are documented [[https://docs.gitlab.com/ee/user/project/push_options.html][here]]. + +* Email + +** Account configuration + +This setting instructs =mu4e= to prompt for login credentials if none are found +when trying to connect to one of the servers that match the regex (see variable +documentation). + +#+begin_src emacs-lisp +(setq smtpmail-servers-requiring-authorization "smtp.migadu.com") +#+end_src + +Setup my main email account. + +#+begin_src emacs-lisp +(set-email-account! "alarsyo.net" + '((mu4e-sent-folder . "/alarsyo.net/Sent") + (mu4e-drafts-folder . "/alarsyo.net/Drafts") + (mu4e-refile-folder . "/alarsyo.net/Archive") + (mu4e-trash-folder . "/alarsyo.net/Trash") + (smtpmail-smtp-server . "smtp.migadu.com") + (smtpmail-smtp-service . 465) + (smtpmail-stream-type . ssl) + (user-mail-address . "antoine@alarsyo.net") + (user-full-name . "Antoine Martin") + (mu4e-compose-signature . "Antoine Martin")) + t) +#+end_src + +** Disable =org-msg= by default + +Doom adds a hook, making it impossible to disable. This allows us to toggle it +manually. + +#+begin_src emacs-lisp +(remove-hook! mu4e-compose-pre #'org-msg-mode) +#+end_src diff --git a/init.el b/init.el index 020ee0c..6364bc2 100644 --- a/init.el +++ b/init.el @@ -172,7 +172,7 @@ yaml ; JSON, but readable :email - ;;(mu4e +gmail) + (mu4e) ;;notmuch ;;(wanderlust +gmail)