+org.el 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. ;;; package --- summary +org.el
  2. ;;; lexical-binding: t; -*-
  3. ;;; Commentary:
  4. ;;; Code:
  5. (setq +todo-file "~/org/inbox.org")
  6. (after! org
  7. (setq org-directory (expand-file-name "~/org/")
  8. org-journal-dir "~/org/journal/"
  9. org-agenda-files (list org-directory)
  10. org-pretty-entities t
  11. org-contacts-files '("~/org/contacts.org")
  12. ; attempt to return todo function to spacemacs
  13. evil-org-key-theme '(textobjects navigation additional insert todo)
  14. ;; show actually italicized text instead of /italicized text/
  15. org-agenda-block-separator ""
  16. org-fontify-whole-heading-line t
  17. org-fontify-done-headline t
  18. org-fontify-quote-and-verse-blocks t
  19. org-bullets-bullet-list '("#")
  20. org-capture-templates
  21. '(
  22. ("i" "Send to inbox" entry (file+headline "~/org/inbox.org" "Inbox")
  23. "* TODO %?\n")
  24. ("l" "Send to inbox with link" entry (file+headline "~/org/inbox.org" "Inbox")
  25. "* TODO %?\n %i\n %a")
  26. ("w" "Work diary entry" entry (file "~/org/work_diary.org")
  27. "* %u\n%?\n")
  28. ("n" "Add an idea" entry (file "~/org/ideas.org")
  29. "* %?\nEntered on %U\n"))
  30. org-todo-keywords
  31. '((sequence "TODO(t)" "NEXT(n)" "WAITING(w)" "MAYBE(m)" "|" "DONE(d)"))
  32. org-todo-keyword-faces
  33. '((("TODO" . (:foreground "red" :weight bold))
  34. ("NEXT" . (:foreground "blue"))
  35. ("MAYBE" . (:foreground "sea green"))
  36. ("WAITING" . (:foreground "forest green")))
  37. ("DONE" . (:foreground "light sea green")))
  38. org-agenda-span 5
  39. org-agenda-start-day "1d"
  40. org-agenda-custom-commands
  41. '(("N" "List all next tasks" ((agenda "" ((org-agenda-span 1)))
  42. (tags "@errand/-DONE") ; should generaly be pretty empty
  43. (tags "@book/NEXT") ; should generaly be pretty empty
  44. (tags "@work/NEXT")
  45. (tags "@home/NEXT")
  46. (tags "@night/NEXT")
  47. (tags "@selectp/NEXT")))
  48. ("R" "Weekly Review"
  49. ((agenda "" ((org-agenda-span 7)))
  50. (stuck "") ; review stuck projects as designated by org-stuck-projects
  51. (tags "PROJECT/-DONE-MAYBE") ; review all projects
  52. (todo "MAYBE") ; review someday/maybe items
  53. (todo "WAITING")))) ; review waiting items
  54. org-use-tag-inheritance nil ; bug in variable below, just turn 'em off
  55. org-tags-exclude-from-inheritance '("PROJECT" "SPRINT") ; PROJECT should not be inheritable
  56. org-stuck-projects
  57. '("+PROJECT/-MAYBE-DONE" ("TODO" "NEXT") nil "\\<IGNORE\\>")
  58. org-tag-alist '(("PROJECT" . ?p)
  59. ("@home" . ?h)
  60. ("@night" . ?n)
  61. ("@selectp" . ?s)
  62. ("@errand" . ?e)
  63. ("@read" . ?r)
  64. ("@work" . ?w)
  65. ("@family" . ?f))
  66. org-modules '(org-drill
  67. org-clock
  68. org-id
  69. org-info
  70. org-habit
  71. org-protocol
  72. org-annotate-file
  73. org-eval
  74. org-expiry
  75. org-contacts
  76. org-man
  77. org-notmuch
  78. org-collector
  79. org-panel
  80. org-screen
  81. org-toc)
  82. ; refile targets
  83. org-refile-targets '(("~/org/todo.org" :maxlevel . 2)
  84. ("~/org/someday.org" :maxlevel . 2)
  85. ("~/org/town.org" :maxlevel . 2)
  86. ("~/org/personal.org" :maxlevel . 2)
  87. ("~/org/elation.org" :maxlevel . 2))))
  88. ;; org-match-sparse-tree
  89. ;;
  90. ;; org-set-tags-command
  91. (defun +open-todo-file ()
  92. (interactive)
  93. "Opens the todo file"
  94. (find-file +todo-file))
  95. (map!
  96. :leader
  97. :desc "Open inbox" "I" #'+open-todo-file)
  98. (defun +show-agenda ()
  99. (interactive)
  100. (delete-other-windows)
  101. (with-popup-rules! nil
  102. (org-agenda-list)
  103. (calendar))
  104. (other-window 1)
  105. (split-window-vertically)
  106. (other-window 1)
  107. (find-file +todo-file))
  108. (map! :leader
  109. (:prefix "a"
  110. :desc "Org Agenda" "o" #'org-agenda
  111. :desc "Org open link" "l" #'org-open-at-point
  112. :desc "Sync gcal with org" "g" #'org-gcal-sync
  113. :desc "Set task deadline" "d" #'org-deadline
  114. :desc "Schedule task" "s" #'org-schedule
  115. :desc "New journal entry" "j" #'org-journal-new-entry
  116. :desc "Org set property" "p" #'org-set-progerty
  117. :desc "Save all org buffers" "a" #'org-save-all-org-buffers
  118. :desc "Org todo" "t" #'org-todo
  119. :desc "Org set tags" "T" #'org-set-tags-command))