summaryrefslogtreecommitdiff
path: root/modules/org-contacts-config.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/org-contacts-config.el')
-rw-r--r--modules/org-contacts-config.el30
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.