Reindent org-projectile's usepackge.
This commit is contained in:
parent
6df84cbc08
commit
66f643106e
@ -998,23 +998,23 @@ the same tree node, and the headline of the tree node in the Org-mode file."
|
|||||||
(add-hook 'org-agenda-mode-hook 'disable-linum-mode)))
|
(add-hook 'org-agenda-mode-hook 'disable-linum-mode)))
|
||||||
|
|
||||||
(use-package org-projectile
|
(use-package org-projectile
|
||||||
:ensure t
|
:ensure t
|
||||||
:demand t
|
:demand t
|
||||||
:bind (("C-c n p" . imalison:helm-org-todo))
|
:bind (("C-c n p" . imalison:helm-org-todo))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(org-projectile:prompt)
|
(org-projectile:prompt)
|
||||||
(add-to-list 'org-capture-templates
|
(add-to-list 'org-capture-templates
|
||||||
(org-projectile:project-todo-entry "l" "* TODO %? %a\n" "Linked Project TODO"))
|
(org-projectile:project-todo-entry "l" "* TODO %? %a\n" "Linked Project TODO"))
|
||||||
(add-to-list 'org-capture-templates (org-projectile:project-todo-entry "p"))
|
(add-to-list 'org-capture-templates (org-projectile:project-todo-entry "p"))
|
||||||
(setq org-confirm-elisp-link-function nil)
|
(setq org-confirm-elisp-link-function nil)
|
||||||
(imalison:add-to-org-agenda-files (org-projectile:todo-files))
|
(imalison:add-to-org-agenda-files (org-projectile:todo-files))
|
||||||
(defun imalison:helm-org-todo (&optional arg)
|
(defun imalison:helm-org-todo (&optional arg)
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(helm :sources (list (helm-source-org-capture-templates)
|
(helm :sources (list (helm-source-org-capture-templates)
|
||||||
(org-projectile:helm-source
|
(org-projectile:helm-source
|
||||||
(if arg (org-capture-make-linked-todo-template)
|
(if arg (org-capture-make-linked-todo-template)
|
||||||
(org-capture-make-todo-template))))
|
(org-capture-make-todo-template))))
|
||||||
:candidate-number-limit 99999
|
:candidate-number-limit 99999
|
||||||
:buffer "*helm org capture templates*"))))
|
:buffer "*helm org capture templates*"))))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user