My goal is to get org-capture to store captured notes in a local "notes.org" file located in the same directory as the current working buffer.
I set the template like so:
(setq org-capture-templates
'(("x"
"local notes" entry (file+headline (concat ,(file-name-directory buffer-file-name) "notes.org") "Copied regions")
"* %^{Title} %U \n %i")
)
)
Alas, when invoking the template i get Invalid file location: nil
.
How should this be done?