From 962f55165adea6d45cf19876dc5454281d612c16 Mon Sep 17 00:00:00 2001 From: zino <theforgotten23623@gmail.com> Date: Sun, 5 Jan 2025 15:41:13 +0800 Subject: [PATCH] feat: save buffer after inserting main.rs template to sink the corresponding file --- 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)))