From e275653231e711a4ede34babdb855913b6a80667 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 5 Aug 2019 14:46:37 +0200 Subject: Re-add e-mail setup --- emacs/.emacs.d/main.el | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'emacs/.emacs.d') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 1c8e78a..686cc6f 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -639,6 +639,34 @@ With two prefix arguments, write out the day and month name." prettier-js-args '("--pkg-conf")) (message "prettier_d is not available")))) +;;; E-mail + +(use-package mu4e + :init (setq mail-user-agent #'mu4e-user-agent) + :custom ((mu4e-completing-read-function #'ivy-completing-read) + (mu4e-maildir "~/mail") + (mu4e-compose-format-flowed t)) + :config (progn + (with-eval-after-load 'evil-ex + (evil-ex-define-cmd "mu[4e]" #'mu4e)) + (setq mu4e-contexts (list + (make-mu4e-context + :name "SatoshiPay" + :match-func (lambda (msg) + (when msg + (mu4e-message-contact-field-matches + msg :to "alan@satoshipay.io"))) + :vars '((user-mail-address . "alan@satoshipay.io") + (mu4e-sent-messages-behavior . 'delete) + (mu4e-drafts-folder . "/satoshipay/Drafts") + (mu4e-sent-folder . "/satoshipay/Sent Mail") + (mu4e-refile-folder . "/satoshipay/All Mail") + (mu4e-trash-folder . "/satoshipay/Bin") + (mu4e-maildir-shortcuts . (("/satoshipay/INBOX" . ?i) + ("/satoshipay/All Mail" . ?a) + ("/satoshipay/Sent Mail" . ?s) + ("/satoshipay/Spam" . ?p))))))))) + ;;; Take me to my leader (my-leader-def -- cgit 1.4.1