summaryrefslogtreecommitdiff
path: root/resources/snippets/emacs-lisp-mode/cond
diff options
context:
space:
mode:
Diffstat (limited to 'resources/snippets/emacs-lisp-mode/cond')
-rw-r--r--resources/snippets/emacs-lisp-mode/cond8
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/snippets/emacs-lisp-mode/cond b/resources/snippets/emacs-lisp-mode/cond
new file mode 100644
index 0000000..738ca0a
--- /dev/null
+++ b/resources/snippets/emacs-lisp-mode/cond
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: cond
+# key: cond
+# --
+(cond (${1:first-condition} ${2:first-return})
+ (${3:second-condition} ${4:second-return})
+ (t ${5:always-true-return}))
+$0 \ No newline at end of file
Copyright 2019--2024 Marius PETER