admin管理员组

文章数量:1405874

I copy pasted a -capture template for my dailies in -roam. I googled quite a bit, asked Chat-GPT but cannot figure out why I am getting the same error message all the time. To my understanding target is defined. Maybe somebody is less blind than me.

From my .emacs

      (let ((head "#+title: %<%Y-%m-%d (%A)>\n#+startup: showall\n* [/] Do Today\n* [/] Maybe Do Today\n* Journal\n"))
        `(("j" "journal" entry
            #'-roam-capture--get-point
            "* %<%H:%M> %?"
            :file-name "daily/%<%Y-%m-%d>"
            :head ,head
            :olp ("Journal")
            :target (file+head "daily/%<%Y-%m-%d>" ,head))
          ("t" "do today" item
            #'-roam-capture--get-point
            "[ ] %(princ as/agenda-captured-link)"
            :file-name "daily/%<%Y-%m-%d>"
            :head ,head
            :olp ("Do Today")
            :immediate-finish t
            :target (file+head "daily/%<%Y-%m-%d>" ,head))
          ("m" "maybe do today" item
            #'-roam-capture--get-point
            "[ ] %(princ as/agenda-captured-link)"
            :file-name "daily/%<%Y-%m-%d>"
            :head ,head
            :olp ("Maybe Do Today")
            :immediate-finish t
            :target (file+head "daily/%<%Y-%m-%d>" ,head)))))

I still receive the error message: Template needs to specify ‘:target’

本文标签: emacsOrgRoam Capture templates throwing an error Template needs to specify target’Stack Overflow