summaryrefslogtreecommitdiff
path: root/c++-mode/tryw
diff options
context:
space:
mode:
Diffstat (limited to 'c++-mode/tryw')
-rw-r--r--c++-mode/tryw9
1 files changed, 9 insertions, 0 deletions
diff --git a/c++-mode/tryw b/c++-mode/tryw
new file mode 100644
index 0000000..cf61928
--- /dev/null
+++ b/c++-mode/tryw
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: tryw
+# key: tryw
+# --
+try {
+ `(or yas/selected-text (car kill-ring))`
+} catch ${1:Exception} {
+
+}