[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
|
#+END_SRC
|
||||||
**** org-projectile
|
**** org-projectile
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package org-projectile
|
(imalison:use-package org-projectile
|
||||||
:after helm
|
:after helm
|
||||||
:bind (("C-c n p" . imalison:helm-org-todo))
|
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(org-projectile:prompt)
|
(setq org-projectile-projects-file
|
||||||
|
(imalison:join-paths imalison:org-dir "projects.org"))
|
||||||
(add-to-list 'org-capture-templates
|
(add-to-list 'org-capture-templates
|
||||||
(org-projectile:project-todo-entry
|
(org-projectile-project-todo-entry
|
||||||
"l" "* TODO %? %a\n" "Linked Project TODO"))
|
:capture-character "l"
|
||||||
(add-to-list 'org-capture-templates (org-projectile:project-todo-entry "p"))
|
: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)
|
(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))
|
||||||
(require 'helm-source)
|
(use-package org-projectile-helm
|
||||||
(require 'helm-org)
|
:ensure nil
|
||||||
(defun imalison:helm-org-todo (&optional arg)
|
:bind (("C-c n p" . org-projectile-helm-template-or-project)))))
|
||||||
(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*"))))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
**** helm-org-rifle
|
**** helm-org-rifle
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
Loading…
Reference in New Issue
Block a user