emacs - Org-Roam Capture templates throwing an error Template needs to specify ‘:target’ - Stack Overflow

I copy pasted a -capture template for my dailies in -roam. I googled quite a bit, asked Chat-GPT but ca

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’

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744935037a4601970.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信