diff options
| author | Simeon Simeonov | 2016-09-09 19:40:27 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2016-09-09 19:40:27 +0200 |
| commit | cef700b95757631e62f9bebbb4482fa8bc529973 (patch) | |
| tree | a2be545207c0f9ff48c2afbe313d0b185d2939a6 | |
| parent | 385a24ebe7d55fbce0c5529462ba904db8c1796a (diff) | |
Some snippet customizations for python-mode
| -rw-r--r-- | .emacs.d/snippets/python-mode/format | 6 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode/script | 5 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode/try | 2 |
3 files changed, 8 insertions, 5 deletions
diff --git a/.emacs.d/snippets/python-mode/format b/.emacs.d/snippets/python-mode/format new file mode 100644 index 0000000..85c2d6f --- /dev/null +++ b/.emacs.d/snippets/python-mode/format | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: format | ||
| 3 | # key: sf | ||
| 4 | # group: object oriented | ||
| 5 | # -- | ||
| 6 | .format($0) \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/python-mode/script b/.emacs.d/snippets/python-mode/script index e7f8a42..931074a 100644 --- a/.emacs.d/snippets/python-mode/script +++ b/.emacs.d/snippets/python-mode/script | |||
| @@ -6,8 +6,5 @@ | |||
| 6 | # -*- coding: utf-8 -*- | 6 | # -*- coding: utf-8 -*- |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | def main(): | ||
| 10 | pass | ||
| 11 | |||
| 12 | if __name__ == '__main__': | 9 | if __name__ == '__main__': |
| 13 | main() | 10 | $0 \ No newline at end of file |
diff --git a/.emacs.d/snippets/python-mode/try b/.emacs.d/snippets/python-mode/try index 8836de6..6e68e8d 100644 --- a/.emacs.d/snippets/python-mode/try +++ b/.emacs.d/snippets/python-mode/try | |||
| @@ -4,5 +4,5 @@ | |||
| 4 | # -- | 4 | # -- |
| 5 | try: | 5 | try: |
| 6 | $1 | 6 | $1 |
| 7 | except ${2:Exception}: | 7 | except ${2:Exception} as e: |
| 8 | $0 \ No newline at end of file | 8 | $0 \ No newline at end of file |
