Update capture templates, move into use-package definition

This commit is contained in:
Evie Litherland-Smith 2024-04-18 09:24:03 +01:00
parent c8d63d192b
commit 5574ef86f3

24
init.el
View file

@ -687,13 +687,15 @@ Try `magit-clone-default-directory' if available, fall back to
(add-hook 'org-mode-hook #'(lambda () (org-indent-mode +1))))
(keymap-global-set "C-c o ." #'calendar)
(keymap-global-set "C-c o e" #'org-edit-src-code)
(keymap-global-set "C-c o a" #'org-agenda)
(keymap-global-set "C-c o n" #'org-capture)
(keymap-global-set "C-c o l" #'org-capture-goto-last-stored)
(setq org-capture-templates
'(("n" "Note" entry
(use-package org-capture
:after org
:bind
(("C-c o n" . org-capture)
("C-c o l" . org-capture-goto-last-stored))
:custom
(org-capture-templates '(("n" "Note" entry
(file+olp+datetree "notes.org" "Inbox")
"* %?")
("t" "Task" entry
@ -702,17 +704,7 @@ Try `magit-clone-default-directory' if available, fall back to
("r" "Reading List" entry
(file+olp+datetree "reading.org" "Inbox")
"* %?")
("d" "Diary Event" entry
(file+datetree "diary.org")
"* %?\n%^T")
("m" "Email Workflow")
("mf" "Follow Up" entry
(file+olp+datetree "tasks.org" "Inbox")
"* TODO Follow up with %:fromname on %a :email:\nDEADLINE: %^{deadline}t\n\n%i")
("mr" "Read Later" entry
(file+olp+datetree "reading.org" "Inbox")
"* TODO Read %:subject :email:\nSCHEDULED: %^{scheduled}t\n\n%i")
))
)))
(use-package org-roam
:after org