dotfiles/.emacs.d/snippets/python-mode/function_docstring

11 lines
239 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
# -*- 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