Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Updating org-roam-copy-todo-to-today for Org-Roam 2 #9

Open
atlasbugged opened this issue Jun 2, 2022 · 0 comments
Open

Updating org-roam-copy-todo-to-today for Org-Roam 2 #9

atlasbugged opened this issue Jun 2, 2022 · 0 comments

Comments

@atlasbugged
Copy link

atlasbugged commented Jun 2, 2022

Problem: the "org-roam-copy-todo-to-today", if placed in an emacs config using org-roam v2 does not function, generating a void-function error related to org-roam-dailies--capture. This function is not provided by org-roam v2. (Noted while using Doom emacs, but pretty sure this would apply to any person using org-roam v2).

Solution: Replace (org-roam-dailies--capture (current-time) t) in the following block with (org-roam-dailies-capture-today "t"):
BEFORE:
(save-window-excursion
(org-roam-dailies--capture (current-time) t)
(setq today-file (buffer-file-name))
(setq pos (point)))

AFTER:
(save-window-excursion
(org-roam-dailies-capture-today "t")
(setq today-file (buffer-file-name))
(setq pos (point)))

EDIT: fixed minor omission of argument for org-roam-dailies-capture-today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant