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:
parent
0d4169bf02
commit
86f5ad6cf8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user