cp-org-capture: set a default template
This commit is contained in:
parent
66cf72c527
commit
21f13cd48c
1 changed files with 13 additions and 7 deletions
|
|
@ -544,7 +544,9 @@ is called with a prefix argument."
|
||||||
|
|
||||||
;;;; counsel-projectile-org-capture
|
;;;; 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'.
|
"Templates for the creation of new entries with `counsel-projectile-org-capture'.
|
||||||
|
|
||||||
The format is the same as in `org-capture-templates', except that
|
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}\" are replaced with the current project
|
||||||
root and name, respectively.
|
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+headline \"${root}/notes.org}\" \"Tasks\"\)
|
||||||
\(file+olp \"~/notes.org\" \"${root}\" \"Todos\"\)
|
|
||||||
|
|
||||||
The former points to headline \"Notes\" in file
|
This points to headline \"Tasks\" in file \"notes.org\" in the
|
||||||
\"<project-name>.org\" in the project root directory (one file per project), whereas the latter points to
|
project root directory (one file per project).
|
||||||
outline path \"<project-root>/Todos\" in file
|
|
||||||
|
Another example of a valid target is:
|
||||||
|
|
||||||
|
\(file+olp \"~/notes.org\" \"${root}\" \"Tasks\"\)
|
||||||
|
|
||||||
|
This points to outline path \"<project-root>/Tasks\" in file
|
||||||
\"~/notes.org\" (same file for all projects)."
|
\"~/notes.org\" (same file for all projects)."
|
||||||
:type ;; copied from `org-capture-templates'
|
:type ;; copied from `org-capture-templates'
|
||||||
(let ((file-variants '(choice :tag "Filename "
|
(let ((file-variants '(choice :tag "Filename "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue