Enable mail plugin

This commit is contained in:
Antoine Martin 2021-03-18 01:14:28 +01:00
parent 6552672943
commit b27d60d68b
2 changed files with 42 additions and 1 deletions

View file

@ -40,6 +40,9 @@
- [[#doom-specific][Doom specific]] - [[#doom-specific][Doom specific]]
- [[#magit][Magit]] - [[#magit][Magit]]
- [[#gitlab-ci-skip-flag][Gitlab CI skip flag]] - [[#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 * Misc
@ -520,3 +523,41 @@ not ready yet.
#+END_SRC #+END_SRC
GitLab push options are documented [[https://docs.gitlab.com/ee/user/project/push_options.html][here]]. 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

View file

@ -172,7 +172,7 @@
yaml ; JSON, but readable yaml ; JSON, but readable
:email :email
;;(mu4e +gmail) (mu4e)
;;notmuch ;;notmuch
;;(wanderlust +gmail) ;;(wanderlust +gmail)