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.el20
1 files changed, 18 insertions, 2 deletions
diff --git a/modules/org-contacts-config.el b/modules/org-contacts-config.el
index 899df28d..b27dee85 100644
--- a/modules/org-contacts-config.el
+++ b/modules/org-contacts-config.el
@@ -35,7 +35,23 @@
;; Use the safe wrapper instead
(add-hook 'org-agenda-finalize-hook 'cj/org-contacts-anniversaries-safe))
-;;; ---------------------------- Capture Templates ------------------------------
+;; ----------------------- Org-Contacts Capture Template -----------------------
+
+(with-eval-after-load 'org-capture
+ (add-to-list 'org-capture-templates
+ '("C" "Contact" entry (file+headline contacts-file "Contacts")
+ "* %(cj/org-contacts-template-name)
+:PROPERTIES:
+:EMAIL: %(cj/org-contacts-template-email)
+:PHONE: %^{Phone(s) - separate multiple with commas}
+:ADDRESS: %^{Address}
+:COMPANY: %^{Company}
+:TITLE: %^{Title/Position}
+:BIRTHDAY: %^{Birthday (YYYY-MM-DD)}
+:END:
+%^{Notes}
+Added: %U"
+ :empty-lines 1)))
(with-eval-after-load 'org-capture
(add-to-list 'org-capture-templates
@@ -202,4 +218,4 @@ module provides more sophisticated completion."
(global-set-key (kbd "C-c C") cj/org-contacts-map)
(provide 'org-contacts-config)
-;;; org-contacts-config.el ends here \ No newline at end of file
+;;; org-contacts-config.el ends here