summaryrefslogtreecommitdiff
path: root/emacs.org
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-16 16:29:57 +0300
committerThanos Apollo <[email protected]>2023-07-16 16:29:57 +0300
commitcf6cd99e34a705a096aeff0caa324562fd015dd2 (patch)
tree2e73af6a9d86ac223d22a8609cca3b78841ef056 /emacs.org
parent962834b3dd33698390445df1e6454030087009e0 (diff)
mu4e: Redo configuration
Diffstat (limited to 'emacs.org')
-rwxr-xr-xemacs.org55
1 files changed, 46 insertions, 9 deletions
diff --git a/emacs.org b/emacs.org
index d1c6780..98b12ea 100755
--- a/emacs.org
+++ b/emacs.org
@@ -771,25 +771,62 @@ Create function to watch videos using ~mpv~
(mu4e-trash-folder . ,(concat dir-name "/Trash"))
(mu4e-trash-folder . ,(concat dir-name "/Starred"))
(mu4e-refile-folder . ,(concat dir-name "/Archive"))
- (smtpmail-smtp-service . ,465)
- (smtpmail-smtp-server . ,server)
(mu4e-compose-signature . ,signature)))))
;;Fixing duplicate UID errors when using mbsync and mu4e
(setq mu4e-change-filenames-when-moving t)
(setq mu4e-maildir-shortcuts
- '(("/Public/Inbox" . ?i)
- ("/Public/Sent" . ?s)
+ '(("/Public/Inbox" . ?I)
+ ("/Inbox" . ?i)
+ ("/Sent" . ?s)
+ ("/MUSofia/Inbox" . ?m)
))
(setq mu4e-contexts
- `(, (set-mu4e-context
- "Public" "Thanos Apollo"
- "[email protected]" "Thanos\nhttps://thanosapollo.com"
- "mail.gandi.net")))
+ (list
+ (make-mu4e-context
+ :name "Personal"
+ :match-func
+ (lambda (msg)
+ (when msg
+ (string-prefix-p "/" (mu4e-message-field msg :maildir))))
+ :vars '((user-mail-address . "[email protected]")
+ (user-full-name . "Thanos Apollo")
+ (mu4e-drafts-folder . "/Drafts")
+ (mu4e-sent-folder . "/Sent")
+ (mu4e-refile-folder . "/Archive")
+ (mu4e-trash-folder . "/Trash")))
+ (make-mu4e-context
+ :name "Master"
+ :match-func
+ (lambda (msg)
+ (when msg
+ (string-prefix-p "/" (mu4e-message-field msg :maildir))))
+ :vars '((user-mail-address . "[email protected]")
+ (user-full-name . "Thanos Apollo")
+ (smtpmail-smtp-server . "smtp.fastmail.com")
+ (smtpmail-smtp-service . 465)
+ (smtpmail-stream-type . ssl)
+ (mu4e-drafts-folder . "/Drafts")
+ (mu4e-sent-folder . "/Sent")
+ (mu4e-refile-folder . "/Archive")
+ (mu4e-trash-folder . "/Trash")))))
(setq message-send-mail-function 'smtpmail-send-it
- smtpmail-stream-type 'ssl))
+ smtpmail-smtp-server "smtp.fastmail.com"
+ smtpmail-smtp-service 465
+ smtpmail-smtp-user "[email protected]"
+ mu4e-compose-signature "Thanos Apollo\nhttps://thanosapollo.com")
+
+ (setq mu4e-view-actions
+ (delete-dups
+ (append
+ '(("gapply git patches" . mu4e-action-git-apply-patch)
+ ("mgit am patch" . mu4e-action-git-apply-mbox)
+ ("bb4 am patch" . mu4e-action-git-apply-b4)
+ ("ssetup reword list with b4" . mu4e-action-setup-reword-b4)
+ ("crun checkpatch script" . my-mu4e-action-run-check-patch)
+ ("MCheck if merged" . my-mu4e-action-check-if-merged))))))
#+end_src
** Actions
#+begin_src emacs-lisp