Built-in capture templates add a link to the file from where capture was initiated
This commit is contained in:
parent
cdf745e72a
commit
b59a27a160
1 changed files with 5 additions and 5 deletions
|
@ -31,23 +31,23 @@ It is used in Doom's default `org-capture-templates'.")
|
|||
(defvar org-capture-templates
|
||||
'(("t" "Personal todo" entry
|
||||
(file+headline +org-capture-todo-file "Inbox")
|
||||
"* [ ] %?\n%i" :prepend t :kill-buffer t)
|
||||
"* [ ] %?\n%i\n%a" :prepend t :kill-buffer t)
|
||||
("n" "Personal notes" entry
|
||||
(file+headline +org-capture-notes-file "Inbox")
|
||||
"* %u %?\n%i" :prepend t :kill-buffer t)
|
||||
"* %u %?\n%i\n%a" :prepend t :kill-buffer t)
|
||||
|
||||
;; Will use {project-root}/{todo,notes,changelog}.org, unless a
|
||||
;; {todo,notes,changelog}.org file is found in a parent directory.
|
||||
("p" "Templates for projects")
|
||||
("pt" "Project todo" entry ; {project-root}/todo.org
|
||||
(file+headline +org-capture-project-todo-file "Inbox")
|
||||
"* [ ] %?\n%i" :prepend t :kill-buffer t)
|
||||
"* [ ] %?\n%i\n%a" :prepend t :kill-buffer t)
|
||||
("pn" "Project notes" entry ; {project-root}/notes.org
|
||||
(file+headline +org-capture-project-notes-file "Inbox")
|
||||
"* [ ] %?\n%i" :prepend t :kill-buffer t)
|
||||
"* [ ] %?\n%i\n%a" :prepend t :kill-buffer t)
|
||||
("pc" "Project changelog" entry ; {project-root}/changelog.org
|
||||
(file+headline +org-capture-project-notes-file "Unreleased")
|
||||
"* [ ] %?\n%i" :prepend t :kill-buffer t)))
|
||||
"* [ ] %?\n%i\n%a" :prepend t :kill-buffer t)))
|
||||
|
||||
|
||||
(defvar org-default-notes-file nil) ; defined in org.el
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue