From bcd993046ffaa3390bcf3252db8ba69d4610191c Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 28 Feb 2025 18:30:17 +0100 Subject: Add snippets/rust-mode and upgrade markdown-mode --- .emacs.d/snippets/rust-mode/drop | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .emacs.d/snippets/rust-mode/drop (limited to '.emacs.d/snippets/rust-mode/drop') diff --git a/.emacs.d/snippets/rust-mode/drop b/.emacs.d/snippets/rust-mode/drop new file mode 100644 index 0000000..ba23a5b --- /dev/null +++ b/.emacs.d/snippets/rust-mode/drop @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: impl Drop for Type { fn drop(...) } +# key: drop +# -- +impl Drop for ${1:Type} { + fn drop(&mut self) { + $0 + } +} -- cgit v1.3