From 4101747eebeb8c9682718d88343354b6039cec5d Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Tue, 30 Mar 2021 14:05:55 -0400 Subject: [PATCH] Play with mu4e config --- config.org | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/config.org b/config.org index 8360634..ef4f76e 100644 --- a/config.org +++ b/config.org @@ -368,11 +368,12 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m smtpmail-stream-type 'ssl smtpmail-smtp-service '465 mu4e-change-filenames-when-moving t - message-kill-buffer-on-exit t mu4e-get-mail-command "offlineimap -q" message-citation-line-format "On %a %d %b %Y at %R, %f wrote:\n" message-citation-line-function 'message-insert-formatted-citation-line - mu4e-context-policy "pick-first" + mu4e-completing-read-function 'ivy-completing-read + mu4e-confirm-quit nil + mail-user-agent 'mu4e-user-agent mu4e-contexts `( ,(make-mu4e-context :name "school" @@ -381,14 +382,14 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m :match-func (lambda (msg) (when msg (string-match-p "^/school" (mu4e-message-field msg :maildir)))) - :vars '( (user-mail-address . "abhojwani22@nobles.edu") - (mu4e-sent-folder . "/school/Sent") - (mu4e-drafts-folder . "/school/Drafts") - (mu4e-trash-folder . "/school/Trash") - (mu4e-refile-folder . "/school/Archive") - (user-mail-address . "abhojwani22@nobles.edu") - (smtpmail-smtp-user . "abhojwani22@nobles.edu") - (smtpmail-smtp-server . "smtp.gmail.com"))) + :vars '((user-mail-address . "abhojwani22@nobles.edu") + (mu4e-sent-folder . "/school/Sent") + (mu4e-drafts-folder . "/school/Drafts") + (mu4e-trash-folder . "/school/Trash") + (mu4e-refile-folder . "/school/Archive") + (user-mail-address . "abhojwani22@nobles.edu") + (smtpmail-smtp-user . "abhojwani22@nobles.edu") + (smtpmail-smtp-server . "smtp.gmail.com"))) ,(make-mu4e-context :name "personal" :enter-func (lambda () (mu4e-message "Entering personal context")) @@ -396,8 +397,7 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m :match-func (lambda (msg) (when msg (string-match-p "^/personal" (mu4e-message-field msg :maildir)))) - :vars '( - (mu4e-sent-folder . "/personal/Sent") + :vars '((mu4e-sent-folder . "/personal/Sent") (mu4e-drafts-folder . "/personal/Drafts") (mu4e-trash-folder . "/personal/Trash") (mu4e-refile-folder . "/personal/Archive") @@ -409,7 +409,9 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m (add-to-list 'mu4e-bookmarks '(:name "Unified inbox" :query "maildir:\"/personal/INBOX\" or maildir:\"/school/INBOX\"" - :key ?b))) + :key ?b)) + :hook ((mu4e-compose-mode . flyspell-mode) + (mu4e-view-mode-hook . turn-on-visual-line-mode))) #+end_src ** Calendar #+begin_src emacs-lisp -- 2.39.2