From 5574ef86f3b8a51703c3cd234a3e3580d4d81355 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 18 Apr 2024 09:24:03 +0100 Subject: [PATCH] Update capture templates, move into use-package definition --- init.el | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/init.el b/init.el index 21daf59..1658d12 100644 --- a/init.el +++ b/init.el @@ -687,32 +687,24 @@ 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 - (file+olp+datetree "notes.org" "Inbox") - "* %?") - ("t" "Task" entry - (file+olp+datetree "tasks.org" "Inbox") - "* TODO [#B] %?") - ("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-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 + (file+olp+datetree "tasks.org" "Inbox") + "* TODO [#B] %?") + ("r" "Reading List" entry + (file+olp+datetree "reading.org" "Inbox") + "* %?") + ))) (use-package org-roam :after org