summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode/ifmain
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/snippets/python-mode/ifmain')
-rw-r--r--.emacs.d/snippets/python-mode/ifmain6
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/snippets/python-mode/ifmain b/.emacs.d/snippets/python-mode/ifmain
new file mode 100644
index 0000000..9575798
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/ifmain
@@ -0,0 +1,6 @@
1# -*- mode: snippet -*-
2# name: ifmain
3# key: ifm
4# --
5if __name__ == '__main__':
6 ${1:main()} \ No newline at end of file