From 56d52046fb336affba46556b8594549f164d1f28 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 1 Feb 2023 18:13:33 +0200 Subject: email-module: Check if system is darwin, to load from homebrew --- .emacs.d/snippets/email-module.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.emacs.d/snippets/email-module.el') diff --git a/.emacs.d/snippets/email-module.el b/.emacs.d/snippets/email-module.el index fc0a235..494bd7b 100644 --- a/.emacs.d/snippets/email-module.el +++ b/.emacs.d/snippets/email-module.el @@ -1,3 +1,9 @@ + + +(when (equal system-type 'darwin) + (use-package mu4e + :load-path "/opt/homebrew/share/emacs/site-lisp/mu/mu4e/")) + (require 'mu4e) (setq mu4e-update-interval (* 10 60)) @@ -7,7 +13,7 @@ (defun set-mu4e-context (context-name full-name mail-address signature server) "Return a mu4e context named CONTEXT-NAME with :match-func matching folder name CONTEXT-NAME in Maildir. The context's `user-mail-address', - `user-full-name' and `mu4e-compose-signature'`smtpmail-smpt-server'. is set to MAIL-ADDRESS + `user-full-name' and `mu4e-compose-signature'`smtpmail-smpt-server' is set to MAIL-ADDRESS FULL-NAME SIGNATURE and SERVER respectively. Special folders are set to context specific folders." (let ((dir-name (concat "/" context-name))) -- cgit v1.2.3