org-roam template for capturing from the browser
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Andrea Ciceri 2024-12-13 19:29:22 +01:00
parent 6d01ccf480
commit e9d20e9453
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -785,6 +785,12 @@ This is meant to be an helper to be called from the window manager."
)
(use-package org-roam
:init
(require 'org)
(require 'org-roam)
(require 'org-roam-dailies)
(require 'org-protocol)
(require 'org-roam-protocol)
:custom
(org-roam-v2-ack t)
(org-roam-directory (file-truename "~/org"))
@ -797,10 +803,18 @@ This is meant to be an helper to be called from the window manager."
("b" "Billable entry" entry
"* TODO ${Entry} :billable:${Client}:\n:PROPERTIES:\n:SPENT: ${Spent}\n:END:\n%?"
:target (file+head "%<%Y-%m-%d>.org" "#+TITLE: %<%Y-%m-%d>")
:create-id t))
:create-id t)
)
)
(org-roam-capture-ref-templates
'(
("r" "Web entry" entry
"* ${Title} \n:PROPERTIES:\n:URL: ${ref}\n:END:\n %i"
:target (file+head "daily/%<%Y-%m-%d>.org" "#+TITLE: %<%Y-%m-%d>")
:create-id t)
)
)
:config
(require 'org-roam-dailies)
(org-roam-db-autosync-mode)
;; In order to automatically add an org id for some capture templates (using the :create-id keyword)