13 Jul 2024
A function for jumping to a project TODO file
I've had org-projectile in my config since the beginning, and while it's worked nicely for me in my main config it gave me some grief when I played around with elpaca the other week.1
I tried to get the install instructions to work, but kept on getting errors when
loading my config. Given that I only use it for one thing, to open the file
TODO.org
in the current project's root, I decided to just write a function for
doing that instead.
(defun mep-projectile-open-todo () "Open the project's todo file." (interactive) (if-let* ((proj-dir (projectile-project-root)) (proj-todo-file (f-join proj-dir "TODO.org"))) (org-open-file proj-todo-file) (message "Not in a project")))
Footnotes:
Comment here.