summaryrefslogtreecommitdiff
path: root/snippets/emacs-lisp-mode/elisp-ifthen
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/emacs-lisp-mode/elisp-ifthen')
-rw-r--r--snippets/emacs-lisp-mode/elisp-ifthen13
1 files changed, 13 insertions, 0 deletions
diff --git a/snippets/emacs-lisp-mode/elisp-ifthen b/snippets/emacs-lisp-mode/elisp-ifthen
new file mode 100644
index 00000000..efe61f83
--- /dev/null
+++ b/snippets/emacs-lisp-mode/elisp-ifthen
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+# name: elifthen
+# key: >elifthen
+# --
+
+(if ($1 condition)
+ (progn
+ $2 ; if statements
+ ; go here
+ )
+ $2 ; else statements
+ ; go here
+) \ No newline at end of file