From 54702ba91b8c39a9eed17269f4cd1c69060e2e9e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 28 Jun 2015 22:52:58 -0700 Subject: [PATCH] use imalison:add-to-org-agenda-files for org-projectile --- dotfiles/emacs.d/init.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 42dd508d..4de0511d 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -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")) (add-to-list 'org-capture-templates (org-projectile:project-todo-entry "p")) (setq org-confirm-elisp-link-function nil) - (cl-loop for filepath in (org-projectile:todo-files) do - (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))) + (imalison:add-to-org-agenda-files (org-projectile:todo-files)) (defun imalison:helm-org-todo (&optional arg) (interactive "P") (helm :sources (list (helm-source-org-capture-templates)