Evie Litherland-Smith
0ee059a354
This reverts commit 32436bb052
.
Broke lots of config, TODO revisit another time
63 lines
2.1 KiB
EmacsLisp
63 lines
2.1 KiB
EmacsLisp
(setq org-directory "~/Org"
|
|
org-journal-dir (expand-file-name "journal" org-directory)
|
|
org-journal-file-type 'daily
|
|
org-journal-file-format "%Y%m%d.org"
|
|
org-agenda-files '("~/Org/")
|
|
org-agenda-sticky t
|
|
org-agenda-window-setup 'current-window
|
|
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-use-outline-path 'file
|
|
org-refile-targets '((nil :maxlevel . 3)
|
|
(org-agenda-files :maxlevel . 3))
|
|
org-outline-path-complete-in-steps nil
|
|
org-default-notes-file (expand-file-name "notes.org" org-directory))
|
|
|
|
(keymap-set global-map "C-c o a" #'org-agenda)
|
|
(keymap-set global-map "C-c o n" #'org-capture)
|
|
(keymap-set global-map "C-c o c" #'org-goto-calendar)
|
|
(keymap-set global-map "C-c o j j" #'org-journal-new-entry)
|
|
(keymap-set global-map "C-c o j n" #'org-journal-new-date-entry)
|
|
(keymap-set global-map "C-c o j s" #'org-journal-new-scheduled-entry)
|
|
|
|
(add-hook 'org-mode-hook #'org-modern-mode)
|
|
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
|
|
|
|
(setq org-capture-templates
|
|
'(("n" "Note" entry
|
|
(file+headline "notes.org" "Inbox")
|
|
"* %?"
|
|
:prepend t
|
|
:empty-lines 1)
|
|
("N" "Note (with context)" entry
|
|
(file+headline "notes.org" "Inbox")
|
|
"* %?\n%a\n%i"
|
|
:prepend t
|
|
:empty-lines 1)
|
|
("t" "Task" entry
|
|
(file+headline "todo.org" "Inbox")
|
|
"* TODO %?"
|
|
:prepend t
|
|
:emptry-lines 1)
|
|
("T" "Task (with context)" entry
|
|
(file+headline "todo.org" "Inbox")
|
|
"* TODO %?\n%a\n%i"
|
|
:prepend t
|
|
:emptry-lines 1)
|
|
))
|
|
|
|
(when (require 'khalel nil :noerror)
|
|
(setq khalel-import-org-file (expand-file-name "calendar.org" org-directory)
|
|
khalel-import-org-file-read-only nil
|
|
khalel-import-org-file-confirm-overwrite nil
|
|
khalel-import-start-date "-30d"
|
|
khalel-import-end-date "+30d")
|
|
(add-hook 'org-agenda-mode-hook #'khalel-import-events)
|
|
(khalel-add-capture-template "e"))
|
|
|
|
(provide 'custom-org-config)
|