From 789c332bf3dd4189106f0600a3c75ea5f5937322 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Thu, 13 Jun 2024 17:46:03 +0000 Subject: Move org-contact capture template to be with the rest of them --- emacs/init.el | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index f43c144..4118b5b 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -236,16 +236,8 @@ targets." ;; Org contacts seems to require birthdays to have a year. However, i don't know the year of a lot of people's birthdays, so i set the year to 0000. This looks bad when the birthday comes up in the agenda. I figured that i don't usually need to know how old someone is going to be, so i change the format of how the birthday appears in the agenda so that i don't get the wrong age. (org-contacts-birthday-format "Birthday: %l") - :config - (add-to-list 'org-capture-templates '("c" "Contact" entry (file+datetree "~/data/notes/notes.org") - "* %^{Name} -:PROPERTIES: -:ADDRESS: %^{Address} -:BIRTHDAY: %^{yyyy-mm-dd} -:EMAIL: %^{EMAIL}p -:NOTE: %^{NOTE} -:END:" -:empty-lines 1))) + + ) ;; select the help window so that i can easily close it again with q (setopt help-window-select t) @@ -296,7 +288,16 @@ targets." (org-return-follows-link t) (org-agenda-files '("~/data/notes/notes.org")) (org-capture-templates `(("j" "Journal" entry (file+datetree "~/data/notes/notes.org") "* %?\n" :empty-lines 1) - ("w" "Website" entry (file+datetree "~/data/notes/notes.org") "* %a\n%?\n" :empty-lines 1))) + ("w" "Website" entry (file+datetree "~/data/notes/notes.org") "* %a\n%?\n" :empty-lines 1) + ("c" "Contact" entry (file+datetree "~/data/notes/notes.org") + "* %^{Name} +:PROPERTIES: +:ADDRESS: %^{Address} +:BIRTHDAY: %^{yyyy-mm-dd} +:EMAIL: %^{EMAIL}p +:NOTE: %^{NOTE} +:END:" +:empty-lines 1))) (org-agenda-tags-column t) (org-agenda-block-separator ?─) -- cgit 1.4.1-2-gfad0