summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode.statnett/method_docstring
diff options
context:
space:
mode:
authorSimeon Simeonov2021-01-12 20:05:37 +0100
committerSimeon Simeonov2021-01-12 20:05:37 +0100
commit4996a6403108a226d4ff1d73b880207cc80284bd (patch)
tree4ed642a366a34775d3401228db1f7bb10752b1b4 /.emacs.d/snippets/python-mode.statnett/method_docstring
parent4fbfa5db6d2819f528698b78d15634affdf9b9a9 (diff)
Add snippets/python-mode.statnett
Diffstat (limited to '.emacs.d/snippets/python-mode.statnett/method_docstring')
-rw-r--r--.emacs.d/snippets/python-mode.statnett/method_docstring10
1 files changed, 10 insertions, 0 deletions
diff --git a/.emacs.d/snippets/python-mode.statnett/method_docstring b/.emacs.d/snippets/python-mode.statnett/method_docstring
new file mode 100644
index 0000000..8f5e78d
--- /dev/null
+++ b/.emacs.d/snippets/python-mode.statnett/method_docstring
@@ -0,0 +1,10 @@
1# -*- mode: snippet -*-
2# name: method_docstring
3# key: md
4# group: object oriented
5# --
6def ${1:name}(self$2):
7 \"\"\"$3
8 ${2:$(python-args-to-docstring)}
9 \"\"\"
10 $0 \ No newline at end of file