I have a variety of org easy templates. I have a new file template which includes a #+DATE header that I'd like to populate with the current date [at the time the template is called].
The concatenated string I'd like to insert could be printed in the minibuffer using:
(concat "#+DATE: " (format-time-string "%m/%d/%Y"))
I try to implement this in my easy template, however, when I include the following in my config file, emacs will not compile the code:
(eval-after-load 'org
'(progn
(add-to-list 'org-structure-template-alist '("n" (concat "#+DATE: " (format-time-string "%m/%d/%Y"))))))
I'm trying to get an error message (running emacs with --debut-init), but I'm not seeing anything. I ran across this SX thread where the OP describes a problem using concat in org-capture-templates. The only reply is to add a backquote (,) before the concat, so I try this:
(eval-after-load 'org
'(progn
(add-to-list 'org-structure-template-alist '("n" ,(concat "#+DATE: " (format-time-string "%m/%d/%Y"))))))
This is still being ignored, and I'm not seeing feedback from the debugger. Any ideas?
1) How should I fix this?
2) What's the best way to go about tracing this type of problem myself in the future?