Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
This repository was 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

Description

@atlasbugged

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions