mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix default personal org-capture targets
Supposed to resolve to {org-directory}/todo.org, but instead resolved to {default-directory}/todo.org.
This commit is contained in:
@ -85,6 +85,18 @@ you're done. This can be called from an external shell script."
|
||||
(doom-project-root)
|
||||
(user-error "Couldn't detect a project")))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +org-capture-todo-file ()
|
||||
"Expand `+org-capture-todo-file' from `org-directory'.
|
||||
If it is an absolute path return `+org-capture-todo-file' verbatim."
|
||||
(expand-file-name +org-capture-todo-file org-directory))
|
||||
|
||||
;;;###autoload
|
||||
(defun +org-capture-notes-file ()
|
||||
"Expand `+org-capture-notes-file' from `org-directory'.
|
||||
If it is an absolute path return `+org-capture-todo-file' verbatim."
|
||||
(expand-file-name +org-capture-notes-file org-directory))
|
||||
|
||||
;;;###autoload
|
||||
(defun +org-capture-project-todo-file ()
|
||||
"Find the nearest `+org-capture-todo-file' in a parent directory, otherwise,
|
||||
|
Reference in New Issue
Block a user