From 1a38d675bf84699b9c1de1da23661e2238c73a1a Mon Sep 17 00:00:00 2001 From: Satoshi KOJIMA Date: Tue, 5 May 2020 09:13:54 +0900 Subject: [PATCH] save main.rs buffer on startup --- rust-playground.el | 1 + 1 file changed, 1 insertion(+) diff --git a/rust-playground.el b/rust-playground.el index eae5b46..c2098ac 100644 --- a/rust-playground.el +++ b/rust-playground.el @@ -153,6 +153,7 @@ Otherwise message the user that they aren't in one." (set-visited-file-name snippet-file-name t) (rust-playground-insert-template-head "snippet of code" snippet-dir) (insert rust-playground-main-rs-template) + (save-buffer) ;; back up to a good place to edit from (backward-char 27) (rust-playground-mode)))