use imalison:add-to-org-agenda-files for org-projectile

This commit is contained in:
Ivan Malison 2015-06-28 22:52:58 -07:00
parent d6312186eb
commit 54702ba91b

View File

@ -963,10 +963,7 @@ the same tree node, and the headline of the tree node in the Org-mode file."
(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)
(cl-loop for filepath in (org-projectile:todo-files) do (imalison:add-to-org-agenda-files (org-projectile:todo-files))
(when (and filepath (or (file-symlink-p filepath) (file-exists-p filepath))
(not (-contains-p org-agenda-files filepath)))
(add-to-list 'org-agenda-files filepath)))
(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)