summaryrefslogtreecommitdiff
path: root/snippets
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2016-05-16 22:24:22 -0700
committerbenj <benj@rse8.com>2016-05-16 22:24:22 -0700
commit1a26be6cc66a078685c871c7647796668a15a298 (patch)
treef3aff9c1f71faedf06d13692b94df928b66985fa /snippets
parent529fb864f0ef8719d477b9f12bc2686b34db7039 (diff)
downloademacs-1a26be6cc66a078685c871c7647796668a15a298.tar
emacs-1a26be6cc66a078685c871c7647796668a15a298.tar.gz
emacs-1a26be6cc66a078685c871c7647796668a15a298.tar.bz2
emacs-1a26be6cc66a078685c871c7647796668a15a298.tar.lz
emacs-1a26be6cc66a078685c871c7647796668a15a298.tar.xz
emacs-1a26be6cc66a078685c871c7647796668a15a298.tar.zst
emacs-1a26be6cc66a078685c871c7647796668a15a298.zip
snippets and checks.
Diffstat (limited to '')
-rw-r--r--snippets/clojure-mode/defn8
-rw-r--r--snippets/clojure-mode/let5
-rw-r--r--snippets/python-mode/import_from5
-rw-r--r--snippets/python-mode/lambda5
-rw-r--r--snippets/python-mode/print5
-rw-r--r--snippets/python-mode/print format5
-rw-r--r--snippets/python-mode/script10
7 files changed, 43 insertions, 0 deletions
diff --git a/snippets/clojure-mode/defn b/snippets/clojure-mode/defn
new file mode 100644
index 0000000..0907e4a
--- /dev/null
+++ b/snippets/clojure-mode/defn
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: defn
+# key: defn
+# --
+defn ${1:name}
+ "${2:docstring}"
+ [${3:arg-list}]
+ $0 \ No newline at end of file
diff --git a/snippets/clojure-mode/let b/snippets/clojure-mode/let
new file mode 100644
index 0000000..426caa2
--- /dev/null
+++ b/snippets/clojure-mode/let
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: let
+# key: let
+# --
+let [$0]
diff --git a/snippets/python-mode/import_from b/snippets/python-mode/import_from
new file mode 100644
index 0000000..767f344
--- /dev/null
+++ b/snippets/python-mode/import_from
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: import_from
+# key: from
+# --
+from $1 import $0
diff --git a/snippets/python-mode/lambda b/snippets/python-mode/lambda
new file mode 100644
index 0000000..08b268b
--- /dev/null
+++ b/snippets/python-mode/lambda
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: lambda
+# key: lam
+# --
+lambda ${1:x}: $0 \ No newline at end of file
diff --git a/snippets/python-mode/print b/snippets/python-mode/print
new file mode 100644
index 0000000..2392fbd
--- /dev/null
+++ b/snippets/python-mode/print
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: print
+# key: print
+# --
+print("$0") \ No newline at end of file
diff --git a/snippets/python-mode/print format b/snippets/python-mode/print format
new file mode 100644
index 0000000..704cb53
--- /dev/null
+++ b/snippets/python-mode/print format
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: print format
+# key: printf
+# --
+print("$1".format($0)) \ No newline at end of file
diff --git a/snippets/python-mode/script b/snippets/python-mode/script
new file mode 100644
index 0000000..3113da9
--- /dev/null
+++ b/snippets/python-mode/script
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: script
+# key: script
+# --
+#!/usr/bin/env python
+def main():
+ ${1:pass}
+
+if __name__ == '__main__':
+ main() \ No newline at end of file