Update capture templates, move into use-package definition
This commit is contained in:
parent
c8d63d192b
commit
5574ef86f3
40
init.el
40
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
|
||||
|
|
Loading…
Reference in a new issue