Skip to content

Commit aa12380

Browse files
committed
Apply an outline to org-gtd-knowledge.el
1 parent fdaaa49 commit aa12380

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

org-gtd-knowledge.el

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@
2424
;;
2525
;;; Code:
2626

27+
;;;; Requirements
28+
2729
(require 'org-gtd-core)
2830
(require 'org-gtd-archive)
2931
(require 'org-gtd-clarify)
3032

3133
(declare-function 'org-gtd-organize--call 'org-gtd-organize)
3234
(declare-function 'org-gtd-organize-apply-hooks 'org-gtd-organize)
3335

36+
;;;; Constants
37+
3438
(defconst org-gtd-knowledge-func #'org-gtd-knowledge--apply
3539
"Function called when item at point is knowledge to be stored.
3640
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')."
4347
;; :package-version '(org-gtd . "3.0.0")
4448
)
4549

50+
;;;; Commands
51+
4652
(defun org-gtd-knowledge ()
4753
"Decorate, organize and refile item at point as knowledge."
4854
(interactive)
4955
(org-gtd-organize--call org-gtd-knowledge-func))
5056

57+
;;;; Functions
58+
59+
;;;;; Private
60+
5161
(defun org-gtd-knowledge--apply ()
5262
"Once the user has filed this knowledge, we can execute this logic."
5363
(org-todo org-gtd-done)
5464
(setq-local org-gtd--organize-type 'knowledge)
5565
(org-gtd-organize-apply-hooks)
5666
(org-gtd-archive-item-at-point))
5767

68+
;;;; Footer
69+
5870
(provide 'org-gtd-knowledge)
71+
5972
;;; org-gtd-knowledge.el ends here

0 commit comments

Comments
 (0)