emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Andrew Burgess <andrew.burgess@embecosm.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] org-capture-place-item better alignment for new lists.
Date: Tue, 07 Oct 2014 15:49:09 +0200	[thread overview]
Message-ID: <87sij02dnu.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <20141007105611.GC3627@embecosm.com> (Andrew Burgess's message of "Tue, 7 Oct 2014 11:56:11 +0100")

Hello,

Andrew Burgess <andrew.burgess@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

  reply	other threads:[~2014-10-07 13:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-07 10:56 [PATCH] org-capture-place-item better alignment for new lists Andrew Burgess
2014-10-07 13:49 ` Nicolas Goaziou [this message]
2014-10-07 15:59   ` Andrew Burgess
2014-10-14 20:29     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sij02dnu.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=andrew.burgess@embecosm.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).