2023-10-27 18:16:04 +01:00
|
|
|
(let)
|
2023-10-24 14:36:12 +01:00
|
|
|
(setq org-directory "~/Org"
|
2023-10-27 18:16:04 +01:00
|
|
|
org-journal-dir (expand-file-name "journal" org-directory)
|
2023-10-24 14:36:12 +01:00
|
|
|
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
|
2023-10-28 09:27:36 +01:00
|
|
|
org-refile-use-outline-path 'file
|
2023-10-24 14:36:12 +01:00
|
|
|
org-refile-targets '((nil :maxlevel . 3)
|
2023-10-27 18:16:04 +01:00
|
|
|
(org-agenda-files :maxlevel . 3))
|
|
|
|
org-outline-path-complete-in-steps nil
|
|
|
|
org-default-notes-file (expand-file-name "notes.org" org-directory))
|
2023-10-25 09:20:22 +01:00
|
|
|
|
2023-10-27 18:16:04 +01:00
|
|
|
(let ((project-template "#+title: ${title}\n#+category: ${title}\n* Goals\n\n* [%] Tasks\n\n* Notes\n\n* References\n"))
|
|
|
|
(setq org-capture-templates
|
|
|
|
'(("n" "Note" entry
|
|
|
|
(file+headline "notes.org" "Inbox")
|
2023-10-28 09:27:36 +01:00
|
|
|
"* %?"
|
|
|
|
:prepend t
|
|
|
|
:empty-lines 1)
|
|
|
|
("N" "Note (with context)" entry
|
|
|
|
(file+headline "notes.org" "Inbox")
|
|
|
|
"* %?\n%a\n%i"
|
2023-10-27 18:16:04 +01:00
|
|
|
:prepend t
|
|
|
|
:empty-lines 1)
|
|
|
|
("t" "Task" entry
|
|
|
|
(file+headline "todo.org" "Inbox")
|
2023-10-28 09:27:36 +01:00
|
|
|
"* TODO %?"
|
|
|
|
:prepend t
|
|
|
|
:emptry-lines 1)
|
|
|
|
("T" "Task (with context)" entry
|
|
|
|
(file+headline "todo.org" "Inbox")
|
|
|
|
"* TODO %?\n%a\n%i"
|
2023-10-27 18:16:04 +01:00
|
|
|
:prepend t
|
|
|
|
:emptry-lines 1)
|
|
|
|
)))
|
2023-10-27 08:03:51 +01:00
|
|
|
|
2023-10-27 18:16:04 +01:00
|
|
|
(when (require 'hydra nil :noerror)
|
|
|
|
(defhydra org (global-map "C-c o")
|
|
|
|
"Org-Mode"
|
|
|
|
("a" org-agenda)
|
2023-10-28 10:17:37 +01:00
|
|
|
("n" org-capture)
|
|
|
|
("c" org-goto-calendar)
|
2023-10-27 18:16:04 +01:00
|
|
|
("j j" org-journal-new-entry)
|
|
|
|
("j n" org-journal-new-date-entry)
|
|
|
|
("j s" org-journal-new-scheduled-entry)))
|
2023-10-27 08:03:51 +01:00
|
|
|
|
2023-10-24 14:36:12 +01:00
|
|
|
(provide 'custom-org-config)
|