Commit df7451ee authored by Jay Kamat's avatar Jay Kamat 😠

Avoid insert on new file creation

Copying the file before hand and opening it normally saves on insert hooks
parent 28ccabf3
Pipeline #95448463 passed with stage
in 43 seconds
......@@ -1556,11 +1556,9 @@ Are you running two compilations at the same time?"))
(file-exists-p src-file-name))))
(if (not src-file-exists)
(error "Could not find starter files! Are you sure the starter/ folder is available? If you want to overide, set `rmsbolt-dir' to your install path")
(find-file file-name)
(unless exists
(insert-file-contents
src-file-name)
(save-buffer))
(copy-file src-file-name file-name))
(find-file file-name)
(unless rmsbolt-mode
(rmsbolt-mode 1)))))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment