diff options
4 files changed, 16 insertions, 0 deletions
diff --git a/.emacs.d/mysnippets/text-mode/python-mode/mprop b/.emacs.d/mysnippets/text-mode/python-mode/mprop index 604f8b5..8a17317 100644 --- a/.emacs.d/mysnippets/text-mode/python-mode/mprop +++ b/.emacs.d/mysnippets/text-mode/python-mode/mprop | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #contributor : Simeon Simeonov <blackmore@pichove.org> | 1 | #contributor : Simeon Simeonov <blackmore@pichove.org> |
| 2 | #name : @property foo ... getter & setter & deleter | 2 | #name : @property foo ... getter & setter & deleter |
| 3 | #expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil)) | ||
| 3 | # -- | 4 | # -- |
| 4 | @property | 5 | @property |
| 5 | def ${1:foo}(self): | 6 | def ${1:foo}(self): |
| @@ -17,5 +18,6 @@ def $1(self, value): | |||
| 17 | def $1(self): | 18 | def $1(self): |
| 18 | """ | 19 | """ |
| 19 | """ | 20 | """ |
| 21 | pass | ||
| 20 | 22 | ||
| 21 | $0 | 23 | $0 |
diff --git a/.emacs.d/mysnippets/text-mode/python-mode/mpropg b/.emacs.d/mysnippets/text-mode/python-mode/mpropg index 6fa9011..eb60b49 100644 --- a/.emacs.d/mysnippets/text-mode/python-mode/mpropg +++ b/.emacs.d/mysnippets/text-mode/python-mode/mpropg | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #contributor : Simeon Simeonov <blackmore@pichove.org> | 1 | #contributor : Simeon Simeonov <blackmore@pichove.org> |
| 2 | #name : @property foo ... getter | 2 | #name : @property foo ... getter |
| 3 | #expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil)) | ||
| 3 | # -- | 4 | # -- |
| 4 | @property | 5 | @property |
| 5 | def ${1:foo}(self): | 6 | def ${1:foo}(self): |
diff --git a/.emacs.d/mysnippets/text-mode/python-mode/mpropsg b/.emacs.d/mysnippets/text-mode/python-mode/mpropsg index 3d515fa..0665f5e 100644 --- a/.emacs.d/mysnippets/text-mode/python-mode/mpropsg +++ b/.emacs.d/mysnippets/text-mode/python-mode/mpropsg | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #contributor : Simeon Simeonov <blackmore@pichove.org> | 1 | #contributor : Simeon Simeonov <blackmore@pichove.org> |
| 2 | #name : @property foo ... getter & setter | 2 | #name : @property foo ... getter & setter |
| 3 | #expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil)) | ||
| 3 | # -- | 4 | # -- |
| 4 | @property | 5 | @property |
| 5 | def ${1:foo}(self): | 6 | def ${1:foo}(self): |
diff --git a/.emacs.d/mysnippets/text-mode/python-mode/pscript b/.emacs.d/mysnippets/text-mode/python-mode/pscript new file mode 100644 index 0000000..8fdb376 --- /dev/null +++ b/.emacs.d/mysnippets/text-mode/python-mode/pscript | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #contributor : Simeon Simeonov <blackmore@pichove.org> | ||
| 2 | #name : script setup | ||
| 3 | #expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil)) | ||
| 4 | # -- | ||
| 5 | #!/usr/bin/env python | ||
| 6 | # -*- coding: utf-8 -*- | ||
| 7 | |||
| 8 | def main(): | ||
| 9 | $0 | ||
| 10 | |||
| 11 | if __name__ == '__main__': | ||
| 12 | main() | ||
