From 5fe8404c969dee9101f136a44342bdd231a29b9f Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Mon, 30 May 2022 04:07:49 +0530 Subject: [PATCH] my-org-fix-newlines - leave point on next heading --- init.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.org b/init.org index 67876b3..4a7d981 100644 --- a/init.org +++ b/init.org @@ -4409,7 +4409,8 @@ preceded by another heading) and after headings." (forward-line)) (goto-char (point-at-bol)) (when (looking-at-p "^$") - (join-line)))))) + (join-line))))) + (outline-next-visible-heading 1)) #+END_SRC *** org-html-themify