unofficial mirror of emacs-orgmode@gnu.org
 help / color / Atom feed
* Breaking line inside list item
@ 2020-06-29 12:31 Sébastien Miquel
  2020-06-29 12:34 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Sébastien Miquel @ 2020-06-29 12:31 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Is there a binding or functionality to go from this, (where | is the 
cursor position):

  - Cogito, |ergo sum.

To this:

  - Cogito,
    |ergo sum.

Pressing enter + tab (calls ~indent-for-tab-command~) doesn't work : the 
line is indented to the dash instead. Although ~indent-for-tab-command~ 
does indent correctly when called in an empty line after a list item.

In the case of nested list, a way to cycle the indentation to that of 
the main or inside list would also be nice.



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

* Re: Breaking line inside list item
  2020-06-29 12:31 Breaking line inside list item Sébastien Miquel
@ 2020-06-29 12:34 ` Nicolas Goaziou
  2020-06-29 12:55   ` Sébastien Miquel
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2020-06-29 12:34 UTC (permalink / raw)
  To: Sébastien Miquel; +Cc: emacs-orgmode

Hello,

Sébastien Miquel <sebastien.miquel@posteo.eu> writes:

> Is there a binding or functionality to go from this, (where | is the
> cursor position):
>
>  - Cogito, |ergo sum.
>
> To this:
>
>  - Cogito,
>    |ergo sum.

There is RET or C-j, depending on your settings.

> In the case of nested list, a way to cycle the indentation to that of
> the main or inside list would also be nice.

I'm not sure what you mean here. 

Regards,
-- 
Nicolas Goaziou


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

* Re: Breaking line inside list item
  2020-06-29 12:34 ` Nicolas Goaziou
@ 2020-06-29 12:55   ` Sébastien Miquel
  2020-06-29 14:14     ` Kévin Le Gouguec
  2020-06-29 18:39     ` Nicolas Goaziou
  0 siblings, 2 replies; 5+ messages in thread
From: Sébastien Miquel @ 2020-06-29 12:55 UTC (permalink / raw)
  To: emacs-orgmode


> There is RET or C-j, depending on your settings.

C-j (~org-return-indent~) does work, thank you.

> I'm not sure what you mean here.
>
> Regards,

I meant to go from

  - Cogito,
    - ergo
      sum

to

  - Cogito,
    - ergo
    sum

But I don't really care about that use case anyway.


> Hello,
>
> Sébastien Miquel <sebastien.miquel@posteo.eu> writes:
>
>> Is there a binding or functionality to go from this, (where | is the
>> cursor position):
>>
>>   - Cogito, |ergo sum.
>>
>> To this:
>>
>>   - Cogito,
>>     |ergo sum.
> There is RET or C-j, depending on your settings.
>
>> In the case of nested list, a way to cycle the indentation to that of
>> the main or inside list would also be nice.
> I'm not sure what you mean here.
>
> Regards,


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

* Re: Breaking line inside list item
  2020-06-29 12:55   ` Sébastien Miquel
@ 2020-06-29 14:14     ` Kévin Le Gouguec
  2020-06-29 18:39     ` Nicolas Goaziou
  1 sibling, 0 replies; 5+ messages in thread
From: Kévin Le Gouguec @ 2020-06-29 14:14 UTC (permalink / raw)
  To: Sébastien Miquel; +Cc: emacs-orgmode

Sébastien Miquel <sebastien.miquel@posteo.eu> writes:

>> There is RET or C-j, depending on your settings.
>
> C-j (~org-return-indent~) does work, thank you.

Just a heads-up: the next version of org-mode (9.4) will obey
electric-indent-mode, which is a global minor mode that is turned on by
default.

When this mode is enabled, RET means "smart return", i.e. "newline &
indent", while C-j means "just newline".  This is how things work in
most modes (except Org) since Emacs 24.4.

When org-mode 9.4 is released, you can either use RET instead of C-j, or
disable electric-indent-mode in org-mode-hook, as will be explained in
ORG-NEWS.



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

* Re: Breaking line inside list item
  2020-06-29 12:55   ` Sébastien Miquel
  2020-06-29 14:14     ` Kévin Le Gouguec
@ 2020-06-29 18:39     ` Nicolas Goaziou
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2020-06-29 18:39 UTC (permalink / raw)
  To: Sébastien Miquel; +Cc: emacs-orgmode

Sébastien Miquel <sebastien.miquel@posteo.eu> writes:

> I meant to go from
>
>  - Cogito,
>    - ergo
>      sum
>
> to
>
>  - Cogito,
>    - ergo
>    sum

Structurally, this is weird. You are splitting a paragraph in two parts,
and sending the latter one into another item.

I think you can use regular Emacs commands, e.g., M-m M-SPC TAB.


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

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 12:31 Breaking line inside list item Sébastien Miquel
2020-06-29 12:34 ` Nicolas Goaziou
2020-06-29 12:55   ` Sébastien Miquel
2020-06-29 14:14     ` Kévin Le Gouguec
2020-06-29 18:39     ` Nicolas Goaziou

unofficial mirror of emacs-orgmode@gnu.org

Archives are clonable:
	git clone --mirror https://yhetil.org/orgmode/0 orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ https://yhetil.org/orgmode \
		emacs-orgmode@gnu.org
	public-inbox-index orgmode

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git