From 7bbbdf4999a894f12d078f0e0ecea9fa0114b0cb Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 25 Jul 2017 11:40:58 -0700 Subject: [PATCH] [Emacs] Update use-package for new org-projectile --- dotfiles/emacs.d/README.org | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index c8ba44d1..409f343f 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -3438,28 +3438,25 @@ alphanumeric characters only." #+END_SRC **** org-projectile #+BEGIN_SRC emacs-lisp -(use-package org-projectile +(imalison:use-package org-projectile :after helm - :bind (("C-c n p" . imalison:helm-org-todo)) :config (progn - (org-projectile:prompt) + (setq org-projectile-projects-file + (imalison:join-paths imalison:org-dir "projects.org")) (add-to-list 'org-capture-templates - (org-projectile:project-todo-entry - "l" "* TODO %? %a\n" "Linked Project TODO")) - (add-to-list 'org-capture-templates (org-projectile:project-todo-entry "p")) + (org-projectile-project-todo-entry + :capture-character "l" + :capture-template "* TODO %? %a\n" + :capture-heading "Linked Project TODO")) + (add-to-list 'org-capture-templates + (org-projectile-project-todo-entry + :capture-character "p")) (setq org-confirm-elisp-link-function nil) - (imalison:add-to-org-agenda-files (org-projectile:todo-files)) - (require 'helm-source) - (require 'helm-org) - (defun imalison:helm-org-todo (&optional arg) - (interactive "P") - (helm :sources (list (helm-source-org-capture-templates) - (org-projectile:helm-source - (if arg (imalison:make-org-linked-todo-template) - (imalison:make-org-todo-template)))) - :candidate-number-limit 99999 - :buffer "*helm org capture templates*")))) + (imalison:add-to-org-agenda-files (org-projectile-todo-files)) + (use-package org-projectile-helm + :ensure nil + :bind (("C-c n p" . org-projectile-helm-template-or-project))))) #+END_SRC **** helm-org-rifle #+BEGIN_SRC emacs-lisp