From 47da1e3e9ae19fac8b7fb8263372745bf3dfaf59 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 28 Feb 2017 09:37:43 +0100 Subject: Add a few more snippets for c-mode (null, return), cleanup for print and printf --- .emacs.d/snippets/python-mode/function_docstring | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '.emacs.d/snippets/python-mode') diff --git a/.emacs.d/snippets/python-mode/function_docstring b/.emacs.d/snippets/python-mode/function_docstring index 1f7f35b..f372d26 100644 --- a/.emacs.d/snippets/python-mode/function_docstring +++ b/.emacs.d/snippets/python-mode/function_docstring @@ -2,9 +2,10 @@ # 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 \ No newline at end of file + \"\"\"$3 + ${2:$(python-args-to-docstring)} + \"\"\" + $0 \ No newline at end of file -- cgit v1.3