From 4996a6403108a226d4ff1d73b880207cc80284bd Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 12 Jan 2021 20:05:37 +0100 Subject: Add snippets/python-mode.statnett --- .emacs.d/snippets/python-mode.statnett/function_docstring | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .emacs.d/snippets/python-mode.statnett/function_docstring (limited to '.emacs.d/snippets/python-mode.statnett/function_docstring') diff --git a/.emacs.d/snippets/python-mode.statnett/function_docstring b/.emacs.d/snippets/python-mode.statnett/function_docstring new file mode 100644 index 0000000..685eaf5 --- /dev/null +++ b/.emacs.d/snippets/python-mode.statnett/function_docstring @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: function_docstring +# key: fd +# group: definitions +# NOTE: Use minimum indentation, because Emacs 25+ doesn't dedent docstrings. +# -- +def ${1:name}($2): + \"\"\"$3 + ${2:$(python-args-to-docstring)} + \"\"\" + $0 \ No newline at end of file -- cgit v1.3