emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/yasnippet-snippets 464517d0e2 09/13: ENH: python-mode/with


From: ELPA Syncer
Subject: [nongnu] elpa/yasnippet-snippets 464517d0e2 09/13: ENH: python-mode/with-open (#482)
Date: Fri, 5 Jan 2024 07:00:46 -0500 (EST)

branch: elpa/yasnippet-snippets
commit 464517d0e239e4e2ee8207d56da7b3197c1349f3
Author: quazgar <quazgar@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    ENH: python-mode/with-open (#482)
---
 snippets/python-mode/with-open | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/snippets/python-mode/with-open b/snippets/python-mode/with-open
new file mode 100644
index 0000000000..a2ccdb301f
--- /dev/null
+++ b/snippets/python-mode/with-open
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: with-open
+# key: wo
+# group : control structure
+# contributor: Quazgar
+# --
+with open(${1:"filename"}${2:, encoding="${3:utf-8}"}${4:, mode="${5:w}"}) as 
${6:myfile}:
+    $0
\ No newline at end of file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]