diff options
author | noa@gaiwan.org | 2024-06-13 17:46:03 +0000 |
---|---|---|
committer | noa@gaiwan.org | 2024-06-13 17:46:03 +0000 |
commit | 789c332bf3dd4189106f0600a3c75ea5f5937322 (patch) | |
tree | 44a5f301ca23eba4f79173477cbc6fce1771364b /emacs/init.el | |
parent | c8557d66b9c369b2ae9d0b9927006da7f2bc2728 (diff) |
Move org-contact capture template to be with the rest of them
Diffstat (limited to 'emacs/init.el')
-rw-r--r-- | emacs/init.el | 23 |
1 files changed, 12 insertions, 11 deletions
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 ?─) |