From 21f13cd48ce003371d350f881c24073836c7614a Mon Sep 17 00:00:00 2001 From: Eric Danan Date: Tue, 12 Dec 2017 22:07:49 +0100 Subject: [PATCH] cp-org-capture: set a default template --- counsel-projectile.el | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index 8c18c37..93d12da 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -544,7 +544,9 @@ is called with a prefix argument." ;;;; counsel-projectile-org-capture -(defcustom counsel-projectile-org-capture-templates nil +(defcustom counsel-projectile-org-capture-templates + '(("t" "Task" entry (file+headline "${root}/notes.org" "Tasks") + "* TODO %?\n %u\n %a")) "Templates for the creation of new entries with `counsel-projectile-org-capture'. The format is the same as in `org-capture-templates', except that @@ -552,14 +554,18 @@ in all strings of in an entry's target slot, all instances of \"${root}\" and \"${name}\" are replaced with the current project root and name, respectively. -Examples of template targets: +The default value contains a single template, whose target is: - \(file+headline \"${root}/${name}.org}\" \"Notes\"\) - \(file+olp \"~/notes.org\" \"${root}\" \"Todos\"\) + \(file+headline \"${root}/notes.org}\" \"Tasks\"\) -The former points to headline \"Notes\" in file -\".org\" in the project root directory (one file per project), whereas the latter points to -outline path \"/Todos\" in file +This points to headline \"Tasks\" in file \"notes.org\" in the +project root directory (one file per project). + +Another example of a valid target is: + + \(file+olp \"~/notes.org\" \"${root}\" \"Tasks\"\) + +This points to outline path \"/Tasks\" in file \"~/notes.org\" (same file for all projects)." :type ;; copied from `org-capture-templates' (let ((file-variants '(choice :tag "Filename "