about summary refs log tree commit diff
path: root/users/wpcarro/emacs/.emacs.d/snippets/python-mode/dunder-main
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d/snippets/python-mode/dunder-main')
-rw-r--r--users/wpcarro/emacs/.emacs.d/snippets/python-mode/dunder-main6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/snippets/python-mode/dunder-main b/users/wpcarro/emacs/.emacs.d/snippets/python-mode/dunder-main
new file mode 100644
index 000000000000..4dd22dc0b2da
--- /dev/null
+++ b/users/wpcarro/emacs/.emacs.d/snippets/python-mode/dunder-main
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: Dunder main (__main__)
+# key: mn
+# --
+if __name__ == "__main__":
+    main()
\ No newline at end of file