summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <thanos@thanosapollo>2023-02-01 18:13:33 +0200
committerThanos Apollo <thanos@thanosapollo>2023-02-01 18:13:33 +0200
commit56d52046fb336affba46556b8594549f164d1f28 (patch)
tree25bbfab7b39dfe9f6d9d41fa96d18e1fd2e63be3
parent8cd61e8f916d83597927bd71ab95771ed166ac47 (diff)
email-module: Check if system is darwin, to load from homebrew
-rw-r--r--.emacs.d/snippets/email-module.el8
1 files changed, 7 insertions, 1 deletions
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)))