Evie Litherland-Smith
0babace2b8
Fix broken keybinds Don't refresh package list on startup, have keybind for that now
53 lines
1.7 KiB
EmacsLisp
53 lines
1.7 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-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)
|
|
))
|
|
|
|
(provide 'custom-org-config)
|