From b59a27a1602246112324a9f5725f94f51a6f14c7 Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Wed, 10 Oct 2018 17:36:25 +0200 Subject: [PATCH] Built-in capture templates add a link to the file from where capture was initiated --- modules/lang/org/+capture.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/lang/org/+capture.el b/modules/lang/org/+capture.el index 03988510e..c9cacae3a 100644 --- a/modules/lang/org/+capture.el +++ b/modules/lang/org/+capture.el @@ -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