File tree 1 file changed +13
-0
lines changed 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 24
24
; ;
25
25
; ;; Code:
26
26
27
+ ; ;;; Requirements
28
+
27
29
(require 'org-gtd-core )
28
30
(require 'org-gtd-archive )
29
31
(require 'org-gtd-clarify )
30
32
31
33
(declare-function 'org-gtd-organize--call 'org-gtd-organize )
32
34
(declare-function 'org-gtd-organize-apply-hooks 'org-gtd-organize )
33
35
36
+ ; ;;; Constants
37
+
34
38
(defconst org-gtd-knowledge-func #'org-gtd-knowledge--apply
35
39
" Function called when item at point is knowledge to be stored.
36
40
Note that this function is used inside loops,for instance to process the inbox,
@@ -43,17 +47,26 @@ clarify step, before you call `org-gtd-organize')."
43
47
; ; :package-version '(org-gtd . "3.0.0")
44
48
)
45
49
50
+ ; ;;; Commands
51
+
46
52
(defun org-gtd-knowledge ()
47
53
" Decorate, organize and refile item at point as knowledge."
48
54
(interactive )
49
55
(org-gtd-organize--call org-gtd-knowledge-func))
50
56
57
+ ; ;;; Functions
58
+
59
+ ; ;;;; Private
60
+
51
61
(defun org-gtd-knowledge--apply ()
52
62
" Once the user has filed this knowledge, we can execute this logic."
53
63
(org-todo org-gtd-done)
54
64
(setq-local org-gtd--organize-type 'knowledge )
55
65
(org-gtd-organize-apply-hooks)
56
66
(org-gtd-archive-item-at-point))
57
67
68
+ ; ;;; Footer
69
+
58
70
(provide 'org-gtd-knowledge )
71
+
59
72
; ;; org-gtd-knowledge.el ends here
You can’t perform that action at this time.
0 commit comments