Trying to make a function that I can call to create a file from a template or open an existing file. Current attempt is as follows:
(defun journal-entry ()
(interactive)
(let ((daily-name (format-time-string "%Y-%m-%d)"))
(journal-path "~/Dropbox (Personal)/journal/"))
(find-file (concat journal-path daily-name ".md"))
(insert "JOURNAL" "\n" daily-name)))
Problem with this is that every time I call it. The ( insert )
content gets re added