branch: externals/beardbolt
commit df7451ee35819bf8522c82f069998ffbaebe5ad6
Author: Jay Kamat <[email protected]>
Commit: Jay Kamat <[email protected]>
Avoid insert on new file creation
Copying the file before hand and opening it normally saves on insert hooks
---
rmsbolt.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/rmsbolt.el b/rmsbolt.el
index dbe9edfe3b..b3e54006ea 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -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)))))