diff options
Diffstat (limited to '.emacs.d/snippets/python-mode.statnett/function_docstring')
| -rw-r--r-- | .emacs.d/snippets/python-mode.statnett/function_docstring | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: function_docstring | ||
| 3 | # key: fd | ||
| 4 | # group: definitions | ||
| 5 | # NOTE: Use minimum indentation, because Emacs 25+ doesn't dedent docstrings. | ||
| 6 | # -- | ||
| 7 | def ${1:name}($2): | ||
| 8 | \"\"\"$3 | ||
| 9 | ${2:$(python-args-to-docstring)} | ||
| 10 | \"\"\" | ||
| 11 | $0 \ No newline at end of file | ||
