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/display | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .emacs.d/snippets/rust-mode/display (limited to '.emacs.d/snippets/rust-mode/display') diff --git a/.emacs.d/snippets/rust-mode/display b/.emacs.d/snippets/rust-mode/display new file mode 100644 index 0000000..1764f67 --- /dev/null +++ b/.emacs.d/snippets/rust-mode/display @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: impl Display for Type { fn fmt (...) } +# key: display +# -- +impl Display for ${1:Type} { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "$0") + } +} -- cgit v1.3