Create a key binding that performs the following function:
(defun zin/org-cycle-current-headline () (interactive) (outline-previous-heading) (org-cycle))
This will return to the previous header and the next loop. Since the title is already open, it will close it. It also puts a dot at the beginning of the title.
If you complete the two commands in (save-excursion ) , it will save the point, however, this can lead to the entry of information inside the ellipsis without realizing it. Alternatively, you can change the command to invoke a non-interactive form:
(defun zin/org-cycle-current-headline () (interactive) (org-cycle-internal-local))
This is equivalent to the above with (save-excursion ) .
source share