Hello, Andrew Burgess <andrew.burg...@embecosm.com> writes:
> Creating an entry in org-capture-templates of type item adds entries > into a list, however, if the list is empty then the first list item > will be indented to depth 0 (so hard on the left) like this: > > * Top Level > ** Second Level > - item #1 > - item #2 > - item #3 > > I prefer to indent content, including lists, to a level matching the > parent, so something like this: > > * Top Level > ** Second Level > - item #1 > - item #2 > - item #3 > > The patch below changes org-capture-place-item so that, when starting > a new list, the items are indented as in the second example above. Thanks for the patch. However, this behaviour is wrong when `org-adapt-indentation' is nil. It is better to use `org-indent-line' than hard-coding (1+ (org-current-level)). Regards, -- Nicolas Goaziou