diff options
| author | benj <benj@rse8.com> | 2018-03-17 20:03:19 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2018-03-17 20:03:19 -0700 |
| commit | eb7fa99cc8afbc47306f112eed8f9a68d4cd06ef (patch) | |
| tree | d52841596ed5bef10366fbb7b8c7bc8417ab5ebe /templates/snippets/python-mode | |
| parent | c38ef385a9af288cf2d2ff0f306b6b2176fcf47d (diff) | |
| download | emacs-eb7fa99cc8afbc47306f112eed8f9a68d4cd06ef.tar emacs-eb7fa99cc8afbc47306f112eed8f9a68d4cd06ef.tar.gz emacs-eb7fa99cc8afbc47306f112eed8f9a68d4cd06ef.tar.bz2 emacs-eb7fa99cc8afbc47306f112eed8f9a68d4cd06ef.tar.lz emacs-eb7fa99cc8afbc47306f112eed8f9a68d4cd06ef.tar.xz emacs-eb7fa99cc8afbc47306f112eed8f9a68d4cd06ef.tar.zst emacs-eb7fa99cc8afbc47306f112eed8f9a68d4cd06ef.zip | |
1. refactored snippets into templates
2. added slime for common lisp
3. created some auto-templates for c
Diffstat (limited to 'templates/snippets/python-mode')
| -rw-r--r-- | templates/snippets/python-mode/import_from | 5 | ||||
| -rw-r--r-- | templates/snippets/python-mode/lambda | 5 | ||||
| -rw-r--r-- | templates/snippets/python-mode/print | 5 | ||||
| -rw-r--r-- | templates/snippets/python-mode/print format | 5 | ||||
| -rw-r--r-- | templates/snippets/python-mode/script | 10 |
5 files changed, 30 insertions, 0 deletions
diff --git a/templates/snippets/python-mode/import_from b/templates/snippets/python-mode/import_from new file mode 100644 index 0000000..767f344 --- /dev/null +++ b/templates/snippets/python-mode/import_from @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: import_from +# key: from +# -- +from $1 import $0 diff --git a/templates/snippets/python-mode/lambda b/templates/snippets/python-mode/lambda new file mode 100644 index 0000000..08b268b --- /dev/null +++ b/templates/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/templates/snippets/python-mode/print b/templates/snippets/python-mode/print new file mode 100644 index 0000000..2392fbd --- /dev/null +++ b/templates/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/templates/snippets/python-mode/print format b/templates/snippets/python-mode/print format new file mode 100644 index 0000000..704cb53 --- /dev/null +++ b/templates/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/templates/snippets/python-mode/script b/templates/snippets/python-mode/script new file mode 100644 index 0000000..3113da9 --- /dev/null +++ b/templates/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 |
