summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/snippets/python-mode')
-rw-r--r--.emacs.d/snippets/python-mode/format6
-rw-r--r--.emacs.d/snippets/python-mode/script5
-rw-r--r--.emacs.d/snippets/python-mode/try2
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
9def main():
10 pass
11
12if __name__ == '__main__': 9if __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# --
5try: 5try:
6 $1 6 $1
7except ${2:Exception}: 7except ${2:Exception} as e:
8 $0 \ No newline at end of file 8 $0 \ No newline at end of file