my-org-fix-newlines - support point before first heading
This commit is contained in:
parent
98803acc44
commit
4e4f5007e9
2
init.org
2
init.org
|
@ -4392,6 +4392,8 @@ From https://emacs.stackexchange.com/questions/20577/org-babel-load-all-language
|
||||||
Newlines are inserted before headings (unless immediately
|
Newlines are inserted before headings (unless immediately
|
||||||
preceded by another heading) and after headings."
|
preceded by another heading) and after headings."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(unless (org-at-heading-p)
|
||||||
|
(outline-next-heading))
|
||||||
(org-map-tree
|
(org-map-tree
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
|
Loading…
Reference in New Issue