I use the following function to make a new text file that is named with date and time:
(defun myfun-create-file-by-date () (interactive) (find-file (format-time-string "C:/journal/%Y-%m-%d--%H-%M-%S.txt"))) (global-set-key "\C-cn" ' myfun-create-file-by-date)
How can I add to this code, so it produces a new file with some text added?
I would like a headline with a property drawer like this:
#+STARTUP: content * my headline
I would like to do this without using the capture-functionality of org-mode, because the capture files so produced are not stored before I push C-c C-c, but then the capture file is closed. This is ok for short notes, but not for files I will work in for hours.