Skip to content

Commit

Permalink
Make capture-template a keyword argument
Browse files Browse the repository at this point in the history
  • Loading branch information
colonelpanic8 committed Oct 6, 2017
1 parent 48f621b commit d570625
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions org-projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@
:type '(string)
:group 'org-projectile)

(defcustom org-projectile-linked-capture-template "* TODO %? %A\n"
"The default linked capture template to use for org-projectile TODOs."
:type '(string)
:group 'org-projectile)

(defcustom org-projectile-force-linked t
"Whether to make project category headings links to their projects."
:type '(boolean)
Expand Down Expand Up @@ -333,8 +328,8 @@
(make-instance 'org-projectile-per-project-strategy)))

;;;###autoload
(defun org-projectile-project-todo-completing-read
(&optional capture-template &rest additional-options)
(cl-defun org-projectile-project-todo-completing-read
(&rest additional-options &key capture-template)
"Select a project using a `projectile-completing-read' and record a TODO.
If CAPTURE-TEMPLATE is provided use it as the capture template
Expand All @@ -352,8 +347,8 @@ were part of the capture template definition."
:options additional-options)))

;;;###autoload
(defun org-projectile-capture-for-current-project
(&optional capture-template &rest additional-options)
(cl-defun org-projectile-capture-for-current-project
(&rest additional-options &key capture-template)
"Capture a TODO for the current active projectile project.
If CAPTURE-TEMPLATE is provided use it as the capture template
Expand Down

0 comments on commit d570625

Please sign in to comment.