diff options
Diffstat (limited to '.emacs.d/snippets/rust-mode/new')
| -rw-r--r-- | .emacs.d/snippets/rust-mode/new | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/snippets/rust-mode/new b/.emacs.d/snippets/rust-mode/new new file mode 100644 index 0000000..c5f21c1 --- /dev/null +++ b/.emacs.d/snippets/rust-mode/new | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: pub fn new() { ... } | ||
| 3 | # key: new | ||
| 4 | # -- | ||
| 5 | pub fn new($1) -> ${2:Name} { | ||
| 6 | $2 { ${3} } | ||
| 7 | } | ||
