I would like to evaluate an element in an alist, like dynamically generating an alist key for the current year:
((format-time-string "%Y") . ?y) => ("2022" . ?y)
(In my case the goal is to dynamically create a org tag for the current year in org-tag-alist
, but this question is more general about alists.)
Even after reading manual entries for alists and quoting (which all alist construction examples I've found use), I am stumped how to achieve this elegantly.
backquote
.