.emacs.d

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

commit 1aa15b64b758df3c6cb6c007c5f7cd46f482f3ac
parent bdb8b594abe0223f43f61792dcb6ea8a7494c77f
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Tue, 19 Jun 2018 10:36:13 -0400

Put a condition to for not using mu4e on Mac OS X.

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

diff --git a/partials/email.el b/partials/email.el @@ -1,33 +1,36 @@ ;; EMAIL SETUP FILE -(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") +;; Using mu4e if not on Mac OS X +(if (not (eq system-type 'darwin)) + (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 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)) + ;; 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)) + )