From 17e8fa54991caa4cae0b09a1f84502feb6a6a0c9 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 21 Feb 2024 06:55:09 +0000 Subject: [PATCH] Start adding some python tempel snippets --- templates | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates b/templates index b9e9cc1..ee85cb0 100644 --- a/templates +++ b/templates @@ -150,7 +150,13 @@ org-mode (inlsrc "src_" p "{" q "}") (title "#+title: " p n "#+author: Daniel Mendler" n "#+language: en") + +python-base-mode + +(main "def main(" p ") -> " p ":" n> q) +(ifmain "if __name__ == \"__main__\":" n> "main()") + ;; Local Variables: ;; mode: lisp-data ;; outline-regexp: "[a-z]" -;; End: \ No newline at end of file +;; End: