[Emacs] Update use-package for new org-projectile
This commit is contained in:
parent
9961410da0
commit
7bbbdf4999
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user