diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /modules/org-contacts-config.el | |
new repository
Diffstat (limited to 'modules/org-contacts-config.el')
| -rw-r--r-- | modules/org-contacts-config.el | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/org-contacts-config.el b/modules/org-contacts-config.el new file mode 100644 index 00000000..489d7a33 --- /dev/null +++ b/modules/org-contacts-config.el @@ -0,0 +1,30 @@ +;;; org-contacts-config.el --- Org Contacts Customizations -*- lexical-binding: t; -*- + +;;; Commentary: +;; + +;;; Code: + +(use-package org-contacts + :after (org org-contrib mu4e) + :defer 1 + :bind ("C-z C" . org-contacts) ; starts contacts search + :config + (setq org-contacts-files (cons contacts-file '())) + + (add-to-list 'org-capture-templates + '("c" "Contact" entry (file+headline contacts-file "Contacts") + "*%?\n:PROPERTIES:\n:ADDRESS: \n:PHONE: \n:EMAIL: \n:BIRTHDAY: \n:NOTES: \n:END:" :prepend t)) + + + (setq mu4e-contacts-file contacts-file) + + (add-to-list 'mu4e-headers-actions + '("add contact" . mu4e-action-add-org-contact)) + (add-to-list 'mu4e-view-actions + '("add contact" . mu4e-action-add-org-contact)) + (add-to-list 'mu4e-view-actions + '("download attachments" . cj/mu4e-view-save-attachments))) + +(provide 'org-contacts-config) +;;; org-contacts-config.el ends here. |
