summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode/function_docstring
blob: f372d265e84848df76f03f96c09650dae2d0a978 (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