So this is the first time I’ve tried to make a “new file from template” type function.
Pretty ugly. Couple the fact that I had to look up in info or apropos every elisp
function other than “concat” with my unwillingness to experiment with
newlines as data and you get a fairly unattractive text builder.
This really isn’t super necessary:
This and date-string build parts I want in file names, and in the yaml heading.
Let’s make a spaces to dashes translation, and take on our date and extension:
Prompt for a name, create a file, fill in some blanks helpfully: