org contacts and its template

This commit is contained in:
2024-02-29 14:38:52 +02:00
parent 26653cddc3
commit 92caff347f
2 changed files with 18 additions and 0 deletions

View File

@@ -233,7 +233,24 @@
'("h" "Home" entry
(file "~/org/home.org")
"* TODO %?" :empty-lines 1))
(use-package! org-contacts
:ensure nil
:after org
:custom (org-contacts-files '("~/org/contacts.org"))
)
;;def var for template that's crazy
(defvar my/org-contacts-template "* %(org-contacts-template-name)
:PROPERTIES:
:ADDRESS: %^{289 Cleveland St. Brooklyn, 11206 NY, USA}
:BIRTHDAY: %^{yyyy-mm-dd}
:EMAIL: %(org-contacts-template-email)
:NOTE: %^{NOTE}
:END:" "Template for org-contacts.")
(add-to-list 'org-capture-templates
("c" "Contact" entry (file+headline "~/org/contacts.org" "Contacts"),
my/org-contacts-template
:empty-lines 1))
(setq-default cache-long-scans nil)
;; zsh pls

View File

@@ -48,6 +48,7 @@
(package! ranger)
(package! flymake-ruff)
(package! org-alert)
(package! org-contacts)
;; Doom's packages are pinned to a specific commit and updated from release to
;; release. The `unpin!' macro allows you to unpin single packages...