summaryrefslogtreecommitdiffstats
path: root/snippets
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-02-04 02:19:19 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2016-02-04 02:19:19 +0100
commitccac5d47bec254a902f8c467c21bba53f41c47b1 (patch)
tree9cd8ea3f9da7e030b14e8db98a69318b2bb44aa3 /snippets
parentdd3dff6eebcd8fb14d8ba9b0666365bea62e5d81 (diff)
downloademacs-ccac5d47bec254a902f8c467c21bba53f41c47b1.tar.gz
emacs-ccac5d47bec254a902f8c467c21bba53f41c47b1.tar.xz
emacs-ccac5d47bec254a902f8c467c21bba53f41c47b1.zip
More personal snippets
Diffstat (limited to 'snippets')
-rw-r--r--snippets/c++-mode/noncopyable.yasnippet8
-rw-r--r--snippets/emacs-lisp-mode/folding-block.yasnippet8
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