summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-15 13:30:49 -0500
committerCraig Jennings <c@cjennings.net>2025-10-15 13:30:49 -0500
commitba88bbf57d7e718c04fa79e9d5af5e582eb35227 (patch)
tree64456586c1bc2a1d04cce7cf420cd57f9c72199a /modules
parentc77d6bff0e887f22932077f97c2be594830b32b2 (diff)
add missing capture template for org-contact
Diffstat (limited to 'modules')
-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