summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode.statnett/function_docstring
blob: 685eaf56cf82ece5e09dbcb1d69cd084384d53f6 (plain)
1
2
3
4
5
6
7
8
9
10
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