about summary refs log tree commit diff
path: root/emacs/.emacs.d/snippets/python-mode/dunder-main
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/snippets/python-mode/dunder-main')
-rw-r--r--emacs/.emacs.d/snippets/python-mode/dunder-main6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/.emacs.d/snippets/python-mode/dunder-main b/emacs/.emacs.d/snippets/python-mode/dunder-main
new file mode 100644
index 000000000000..4dd22dc0b2da
--- /dev/null
+++ b/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