[emcas] Implement Boris' org-agenda speed up tricks!

This commit is contained in:
2023-01-26 19:26:46 -05:00
parent fb90c6c102
commit a6b362a05e
3 changed files with 171 additions and 2 deletions

View File

@ -200,12 +200,25 @@ We love auto-formatting, but not everything should be auto-formatted
A handful of mods here clean up org mode. Line numbers dont mean much when
youre folding and unfolding all the time. I also really enjoy the typography of
a serif font when Im writing a lot of words.
There's also a really cool trick that I picked from [[https://d12frosted.io/posts/2021-01-16-task-management-with-roam-vol5.html][Boris]] where we dynamically
look through org files to see if they have org todos rather than just processing
them all every time.
#+BEGIN_SRC emacs-lisp
(load! "+agenda-fix")
(defun vulpea-agenda-files-update (&rest _)
"Update the value of `org-agenda-files'."
(setq org-agenda-files (vulpea-project-files)))
(advice-add 'org-agenda :before #'vulpea-agenda-files-update)
(advice-add 'org-todo-list :before #'vulpea-agenda-files-update)
(add-hook 'org-mode-hook #'doom-disable-line-numbers-h)
(after! org
(setq org-directory (expand-file-name "~/var/org/")
org-agenda-files (append '("~/var/org"))
org-ellipsis ""
org-image-actual-width '(600)
org-fontify-quote-and-verse-blocks t