diff options
| author | benj <benj@rse8.com> | 2016-05-16 22:24:22 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2016-05-16 22:24:22 -0700 |
| commit | 1a26be6cc66a078685c871c7647796668a15a298 (patch) | |
| tree | f3aff9c1f71faedf06d13692b94df928b66985fa /snippets/python-mode | |
| parent | 529fb864f0ef8719d477b9f12bc2686b34db7039 (diff) | |
| download | emacs-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/python-mode/import_from | 5 | ||||
| -rw-r--r-- | snippets/python-mode/lambda | 5 | ||||
| -rw-r--r-- | snippets/python-mode/print | 5 | ||||
| -rw-r--r-- | snippets/python-mode/print format | 5 | ||||
| -rw-r--r-- | snippets/python-mode/script | 10 |
5 files changed, 30 insertions, 0 deletions
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 |
