summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/rust-mode/pfns
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/snippets/rust-mode/pfns')
-rw-r--r--.emacs.d/snippets/rust-mode/pfns7
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/snippets/rust-mode/pfns b/.emacs.d/snippets/rust-mode/pfns
new file mode 100644
index 0000000..4ad120f
--- /dev/null
+++ b/.emacs.d/snippets/rust-mode/pfns
@@ -0,0 +1,7 @@
1# -*- mode: snippet -*-
2# name: pub fn name(&self) -> Type { ... }
3# key: pfns
4# --
5pub fn ${1:name}(${2:&self}) -> ${3:Type} {
6 $0
7} \ No newline at end of file