refactored templates to make my life easier

This commit is contained in:
2024-03-05 22:14:17 +02:00
parent dbc1ce8df8
commit 63560eddcc

View File

@@ -222,42 +222,11 @@
;; MORE TEMPLATES ;; MORE TEMPLATES
(after! org (after! org
(add-to-list 'org-capture-templates
'("w" "Work" entry
(file "~/org/work.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("l" "Someday" entry
(file "~/org/someday.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("s" "Studies" entry
(file "~/org/studies.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("h" "Home" entry
(file "~/org/home.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("S" "Lecture" entry
(file+headline "~/org/studies.org" "Schedule")
"* %^{Subject} %^{Type|Lecture|}\n%^{Time}T"
:empty-lines 1))
(use-package! org-contacts (use-package! org-contacts
:after org :after org
:custom (org-contacts-files '("~/org/contacts.org")) :custom (org-contacts-files '("~/org/contacts.org"))
) )
;;def var for template that's crazy
(defvar my/org-contacts-template "* %^{John Dough}
:PROPERTIES:
:ADDRESS: %^{289 Cleveland St. Brooklyn, 11206 NY, USA}
:BIRTHDAY: %^{yyyy-mm-dd}
:EMAIL: %^{e@gmail.com}
:NOTE: %^{NOTE}
:END:")
(add-to-list 'org-capture-templates (add-to-list 'org-capture-templates
'("c" "Contact" entry '("c" "Contact" entry
(file+headline "~/org/contacts.org" "Contacts") (file+headline "~/org/contacts.org" "Contacts")
@@ -270,6 +239,32 @@
:NOTE: %^{NOTE} :NOTE: %^{NOTE}
:END:" :END:"
:empty-lines 1)) :empty-lines 1))
(add-to-list 'org-capture-templates
'("w" "Work" entry
(file+headline "~/org/work.org" "Inbox")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("i" "Content idea" entry
(file+headline "~/org/work.org" "Ideas")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("l" "Someday" entry
(file "~/org/someday.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("s" "Studies" entry
(file+headline "~/org/studies.org" "Inbox")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("S" "Lecture" entry
(file+headline "~/org/studies.org" "Schedule")
"* %^{Subject} %^{Type|Lecture|}\n%^{Time}T"
:empty-lines 1))
(add-to-list 'org-capture-templates
'("h" "Home" entry
(file+headline "~/org/home.org" "Inbox")
"* TODO %?" :empty-lines 1))
) )
(setq-default cache-long-scans nil) (setq-default cache-long-scans nil)