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
1 changed files with 4 additions and 3 deletions

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 "\"\"\"")
(let ((point-pos (point)))
(open-line-below) (open-line-below)
(insert "\"\"\"") (insert "\"\"\"\n")
(open-line-above))) (goto-char point-pos))))
#+END_SRC #+END_SRC
** ~idm~ (ID manager) related functions ** ~idm~ (ID manager) related functions