From ff160687915804b109fe626a5c7fbe949f227106 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 10 Jan 2024 21:49:17 +0100 Subject: Update markdown-mode and yasnippet. Add some new Python snippets --- .emacs.d/snippets/python-mode/with-open | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .emacs.d/snippets/python-mode/with-open (limited to '.emacs.d/snippets/python-mode/with-open') diff --git a/.emacs.d/snippets/python-mode/with-open b/.emacs.d/snippets/python-mode/with-open new file mode 100644 index 0000000..77c7210 --- /dev/null +++ b/.emacs.d/snippets/python-mode/with-open @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: with-open +# key: wo +# -- +with open(${1:"filename"}${2:, encoding="${3:utf-8}"}${4:, mode="${5:w}"}) as ${6:myfile}: + $0 \ No newline at end of file -- cgit v1.3