Make Python docstring insertion a bit easier

Now point is placed between the triple quotes, and an empty line is added after the docstring block.
This commit is contained in:
Gergely Polonkai 2019-12-09 06:13:35 +01:00
parent 0d4169bf02
commit 86f5ad6cf8
No known key found for this signature in database
GPG Key ID: 38F402C8471DDE93

View File

@ -783,9 +783,10 @@ to the beginning of the file."
(open-line-above) (open-line-above)
(open-line-below)) (open-line-below))
(insert "\"\"\"") (insert "\"\"\"")
(open-line-below) (let ((point-pos (point)))
(insert "\"\"\"") (open-line-below)
(open-line-above))) (insert "\"\"\"\n")
(goto-char point-pos))))
#+END_SRC #+END_SRC
** ~idm~ (ID manager) related functions ** ~idm~ (ID manager) related functions