emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] org-capture-place-item better alignment for new lists.


From: Nicolas Goaziou
Subject: Re: [O] [PATCH] org-capture-place-item better alignment for new lists.
Date: Tue, 07 Oct 2014 15:49:09 +0200

Hello,

Andrew Burgess <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]