+org.el 5.1 KB

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