+org.el 5.0 KB

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