emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Indenting into lists
@ 2012-11-12  7:04 William Léchelle
  2012-11-12 20:57 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: William Léchelle @ 2012-11-12  7:04 UTC (permalink / raw)
  To: emacs-orgmode

Hi list,

I often structure notes into (multi-level) lists, and copy-paste multi-line
text into them, some of which gets pasted on column zero. For it to be part of
the list item, it needs to be indented as such, which I'd like <tab> to do.

  ┏━━━━[ <tab> runs the command org-cycle ]
  ┃ When point is not at the beginning of a headline, execute the global binding
  ┃ for TAB, which is re-indenting the line.
  ┗━━━━

Problem is tab only indents to the first possible level, that is, until the
bullets, like so:

* heading
  - list item on
    many lines
  HERE is not enough to be in the list.

So in order to achieve the desired behaviour, I have to press space and tab
alternatively until the line reaches where it belongs (for that combination
makes it be indented more and more), which becomes tedious when indenting a few
lines across nested lists.

Is there a better way to indent to the maximum point ?

(Could tab cycle between all indenting points, like is automagical in python ?
That would be truly awesome.)

Thanks in advance

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Indenting into lists
  2012-11-12  7:04 Indenting into lists William Léchelle
@ 2012-11-12 20:57 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2012-11-12 20:57 UTC (permalink / raw)
  To: William Léchelle; +Cc: emacs-orgmode

Hello,

William Léchelle <william.lechelle@ens-lyon.fr> writes:

> Problem is tab only indents to the first possible level, that is, until the
> bullets, like so:
>
> * heading
>   - list item on
>     many lines
>   HERE is not enough to be in the list.

That's no exactly right. Since the line was outside the list before, it
indents it so that it's still out of it after. With that rule, it's not
the first possible level, but the only one.

> So in order to achieve the desired behaviour, I have to press space and tab
> alternatively until the line reaches where it belongs (for that combination
> makes it be indented more and more), which becomes tedious when indenting a few
> lines across nested lists.
>
> Is there a better way to indent to the maximum point ?

I suggest C-x r o as it allows to indent more than one line at a time.

> (Could tab cycle between all indenting points, like is automagical in python ?
> That would be truly awesome.)

That's not possible. Though, I think it would be quite disturbing. It
works well with Python because every line is treated as such. But, in an
Org buffer, it would only happen on lines following an item, that is not
often enough, IMO, to make it unsurprising.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-12 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-12  7:04 Indenting into lists William Léchelle
2012-11-12 20:57 ` Nicolas Goaziou

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).