2023-10-24 14:36:12 +01:00
|
|
|
(setq org-directory "~/Org"
|
|
|
|
org-journal-dir "~/Org/journal/"
|
|
|
|
org-journal-file-type 'daily
|
|
|
|
org-journal-file-format "%Y%m%d.org"
|
|
|
|
org-agenda-files '("~/Org/")
|
|
|
|
org-agenda-sticky t
|
|
|
|
org-agenda-prefix-format '((agenda . " %i %t %s")
|
|
|
|
(todo . " %i")
|
|
|
|
(tags . " %i")
|
|
|
|
(search . " %i"))
|
|
|
|
org-refile-use-outline-path t
|
|
|
|
org-refile-allow-creating-parent-nodes t
|
|
|
|
org-refile-targets '((nil :maxlevel . 3)
|
|
|
|
(org-agenda-files :maxlevel . 3)))
|
2023-10-25 09:20:22 +01:00
|
|
|
|
2023-10-27 08:03:51 +01:00
|
|
|
(defun my/org-move-done-tasks-to-bottom ()
|
|
|
|
"Sort all tasks in the topmost heading by TODO state."
|
|
|
|
(interactive)
|
|
|
|
(save-excursion
|
|
|
|
(while (org-up-heading-safe))
|
|
|
|
(org-sort-entries nil ?o))
|
|
|
|
|
|
|
|
;; Reset the view of TODO items
|
|
|
|
(org-overview)
|
|
|
|
(org-show-entry)
|
|
|
|
(org-show-children))
|
|
|
|
|
|
|
|
(when (require 'org nil :noerror)
|
|
|
|
(add-hook
|
|
|
|
'org-mode-hook
|
|
|
|
(lambda () (add-hook
|
|
|
|
'before-save-hook
|
|
|
|
#'my/org-move-done-tasks-to-bottom
|
|
|
|
nil
|
|
|
|
'local))))
|
|
|
|
|
2023-10-24 14:36:12 +01:00
|
|
|
(provide 'custom-org-config)
|