I am using the following function to make a new text file containing premade rows. The text file is named with a date and time tag, and stored in a /notes/ folder.
(defun myfun-create-file-with-rows()
(interactive)
(find-file (format-time-string "C:/Users/myUser/notes/%Y-%m-%d--%H-%M-%S.txt"))
(insert "My title\n\n\n\n\n\nLinks:\n")
)
The function inserts the row "My title" followed by 5 blank rows and the row "Links:".
When I use this function the position of the cursor (point) ends at the bottom of the inserted lines, below the row "Links:". How can I make the cursor end a line below the row "My title" ?