From 86f5ad6cf8087bc52c72b2d6ab80fd10e197805c Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 9 Dec 2019 06:13:35 +0100 Subject: [PATCH] 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. --- configuration.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configuration.org b/configuration.org index 8e2ca01..cc0d48a 100644 --- a/configuration.org +++ b/configuration.org @@ -783,9 +783,10 @@ to the beginning of the file." (open-line-above) (open-line-below)) (insert "\"\"\"") - (open-line-below) - (insert "\"\"\"") - (open-line-above))) + (let ((point-pos (point))) + (open-line-below) + (insert "\"\"\"\n") + (goto-char point-pos)))) #+END_SRC ** ~idm~ (ID manager) related functions