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