+org.el 4.9 KB

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