mu4e: set different ical capture headings based on account context
This commit is contained in:
parent
c61a502f2b
commit
a338e54f0e
|
@ -78,7 +78,8 @@
|
||||||
(mu4e-sent-folder . "/Proton/Sent")
|
(mu4e-sent-folder . "/Proton/Sent")
|
||||||
(mu4e-drafts-folder . "/Proton/Drafts")
|
(mu4e-drafts-folder . "/Proton/Drafts")
|
||||||
(mu4e-trash-folder . "/Proton/Trash")
|
(mu4e-trash-folder . "/Proton/Trash")
|
||||||
(mu4e-refile-folder . "/Proton/Archive")))
|
(mu4e-refile-folder . "/Proton/Archive")
|
||||||
|
(gnus-icalendar-org-capture-headline '("Personal"))))
|
||||||
(make-mu4e-context
|
(make-mu4e-context
|
||||||
:name "Proton"
|
:name "Proton"
|
||||||
:match-func (lambda (msg) (when msg (string-prefix-p "/Proton" (mu4e-message-field msg :maildir))))
|
:match-func (lambda (msg) (when msg (string-prefix-p "/Proton" (mu4e-message-field msg :maildir))))
|
||||||
|
@ -86,7 +87,8 @@
|
||||||
(mu4e-sent-folder . "/Proton/Sent")
|
(mu4e-sent-folder . "/Proton/Sent")
|
||||||
(mu4e-drafts-folder . "/Proton/Drafts")
|
(mu4e-drafts-folder . "/Proton/Drafts")
|
||||||
(mu4e-trash-folder . "/Proton/Trash")
|
(mu4e-trash-folder . "/Proton/Trash")
|
||||||
(mu4e-refile-folder . "/Proton/Archive")))
|
(mu4e-refile-folder . "/Proton/Archive")
|
||||||
|
(gnus-icalendar-org-capture-headline '("Personal"))))
|
||||||
(make-mu4e-context
|
(make-mu4e-context
|
||||||
:name "iCloud"
|
:name "iCloud"
|
||||||
:match-func (lambda (msg) (when msg (string-prefix-p "/iCloud" (mu4e-message-field msg :maildir))))
|
:match-func (lambda (msg) (when msg (string-prefix-p "/iCloud" (mu4e-message-field msg :maildir))))
|
||||||
|
@ -94,7 +96,8 @@
|
||||||
(mu4e-sent-folder . "/iCloud/Sent Messages")
|
(mu4e-sent-folder . "/iCloud/Sent Messages")
|
||||||
(mu4e-drafts-folder . "/iCloud/Drafts")
|
(mu4e-drafts-folder . "/iCloud/Drafts")
|
||||||
(mu4e-trash-folder . "/iCloud/Deleted Messages")
|
(mu4e-trash-folder . "/iCloud/Deleted Messages")
|
||||||
(mu4e-refile-folder . "/iCloud/Archive")))
|
(mu4e-refile-folder . "/iCloud/Archive")
|
||||||
|
(gnus-icalendar-org-capture-headline '("Personal"))))
|
||||||
(make-mu4e-context
|
(make-mu4e-context
|
||||||
:name "Work"
|
:name "Work"
|
||||||
:match-func (lambda (msg) (when msg (string-prefix-p "/Outlook" (mu4e-message-field msg :maildir))))
|
:match-func (lambda (msg) (when msg (string-prefix-p "/Outlook" (mu4e-message-field msg :maildir))))
|
||||||
|
@ -102,7 +105,8 @@
|
||||||
(mu4e-sent-folder . "/Outlook/Sent")
|
(mu4e-sent-folder . "/Outlook/Sent")
|
||||||
(mu4e-drafts-folder . "/Outlook/Drafts")
|
(mu4e-drafts-folder . "/Outlook/Drafts")
|
||||||
(mu4e-trash-folder . "/Outlook/Trash")
|
(mu4e-trash-folder . "/Outlook/Trash")
|
||||||
(mu4e-refile-folder . "/Outlook/Archive"))))))
|
(mu4e-refile-folder . "/Outlook/Archive")
|
||||||
|
(gnus-icalendar-org-capture-headline '("Work")))))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Modeline configuration
|
** Modeline configuration
|
||||||
|
|
Loading…
Reference in a new issue