Bastien <b...@gnu.org> writes: > Kévin Le Gouguec <kevin.legoug...@gmail.com> writes: > >> A fews more moles to whack, maybe: >> >> - RET after an ":END:" starts an indented line, >> - "* headline RET text TAB" indents "text" (and subsequent RETs are then >> indented). > > Fixed, thanks.
Great! One last snag that I can see: when inserting properties or clocking in, the :LOGBOOK:, :PROPERTIES: and :END: lines are indented, but the /first/ :property: or CLOCK: line remains at column 0. I've looked briefly at org-indent-line; IIUC, those lines get caught in this condition: (save-excursion (beginning-of-line 1) (skip-chars-backward "\n") (or (org-at-heading-p) (org-at-drawer-p) (org-at-planning-p))) I'm guessing we'd need to throw some (org-at-property-p) and (org-at-clock-log-p) guards *before* skipping backward over "\n", but I haven't thought this through completely yet. >> should at least write test cases for them. Will try to find the time >> Sometime Later™. > > This might help: https://orgmode.org/worg/org-faq.html#indentation Wonderful! That will definitely help, thanks.