.emacs.d

My Emacs configuration files.
Log | Files | Refs | README

commit 0d4f2c66e4d69dcc2496173211ba339e30c523ad
parent ff38b500750eb82f94029782ae44574606e6b2ac
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Wed, 21 Mar 2018 15:11:01 -0400

Put email configuration in `use-package` blocks.

Diffstat:
Mpartials/email.el | 55++++++++++++++++++++++++++++---------------------------
1 file changed, 28 insertions(+), 27 deletions(-)

diff --git a/partials/email.el b/partials/email.el @@ -1,32 +1,33 @@ ;; EMAIL SETUP FILE -(require 'mu4e) -;; location of my maildir -(setq mu4e-maildir (expand-file-name "~/Maildir")) -(setq mu4e-sent-folder "/Sent") -(setq mu4e-drafts-folder "/Drafts") -(setq mu4e-trash-folder "/Trash") -(setq message-signature-file "~/.signature") +(use-package mu4e + ;; Mail client for Emacs. + :config + (setq mu4e-maildir (expand-file-name "~/Maildir")) + (setq mu4e-sent-folder "/Sent") + (setq mu4e-drafts-folder "/Drafts") + (setq mu4e-trash-folder "/Trash") + (setq message-signature-file "~/.signature") -;; command used to get mail -;; use this to sync with mbsync -(setq mu4e-get-mail-command "mbsync hugosoucycc") -;; use this for testing -;; (setq mu4e-get-mail-command "true") + ;; command used to get mail + ;; use this to sync with mbsync + (setq mu4e-get-mail-command "mbsync hugosoucycc") + ;; use this for testing + ;; (setq mu4e-get-mail-command "true") -;;rename files when moving -;;NEEDED FOR MBSYNC -(setq mu4e-change-filenames-when-moving t) + ;; rename files when moving + ;; NEEDED FOR MBSYNC + (setq mu4e-change-filenames-when-moving t)) -;; Send -(require 'smtpmail) - -(setq message-send-mail-function 'smtpmail-send-it - starttls-use-gnutls t - mu4e-sent-messages-behavior 'sent - smtpmail-default-smtp-server "mail63.csoft.net" - smtpmail-smtp-user "hs0ucy" - smtpmail-smtp-server "mail63.csoft.net" - smtpmail-stream-type 'starttls - smtpmail-smtp-service 587 - smtpmail-debug-info t) +;; Send mail +(use-package smtpmail + :config + (setq message-send-mail-function 'smtpmail-send-it + starttls-use-gnutls t + mu4e-sent-messages-behavior 'sent + smtpmail-default-smtp-server "mail63.csoft.net" + smtpmail-smtp-user "hs0ucy" + smtpmail-smtp-server "mail63.csoft.net" + smtpmail-stream-type 'starttls + smtpmail-smtp-service 587 + smtpmail-debug-info t))