diff options
-rw-r--r-- | snippets/c++-mode/noncopyable.yasnippet | 8 | ||||
-rw-r--r-- | snippets/emacs-lisp-mode/folding-block.yasnippet | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/snippets/c++-mode/noncopyable.yasnippet b/snippets/c++-mode/noncopyable.yasnippet new file mode 100644 index 0000000..5a77377 --- /dev/null +++ b/snippets/c++-mode/noncopyable.yasnippet @@ -0,0 +1,8 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: noncopyable +# key: noncopyable +# binding: direct-keybinding +# -- +/* no copies */ +$1(const $1&) = delete; +$1& operator=(const $1&) = delete;
\ No newline at end of file diff --git a/snippets/emacs-lisp-mode/folding-block.yasnippet b/snippets/emacs-lisp-mode/folding-block.yasnippet new file mode 100644 index 0000000..6eeb651 --- /dev/null +++ b/snippets/emacs-lisp-mode/folding-block.yasnippet @@ -0,0 +1,8 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: folding-block +# key: {{ +# binding: direct-keybinding +# -- +;;{{{ $1 +$0 +;;}}}
\ No newline at end of file |