emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] M-RET and C-RET turn current line of text into a heading?


From: Eric Abrahamsen
Subject: Re: [O] M-RET and C-RET turn current line of text into a heading?
Date: Thu, 16 May 2013 11:17:03 +0800
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

Samuel Wales <address@hidden> writes:

> How about this?  IMO this would be ideal.
>
>   - M-RET is for the current context
>   - C-RET is for a new context
>
> |-------------+------------------+--------+------------------------------|
> | command     | context          | pos    | action                       |
> |-------------+------------------+--------+------------------------------|
> | c-ret       | any              | any    | create headline above ENTRY  |
> | m-ret       | headline or item | beg    | create new above header/item |
> | m-ret       | headline or item | middle | split                        |
> | m-ret       | headline or item | end    | create new below header/item |
> | m-ret       | line             | beg    | create headline above LINE   |
> | m-ret twice | line             | beg    | create item above line       |
> | m-ret       | line             | middle | turn line into a headline    |
> | m-ret twice | line             | middle | turn line into an item       |
> | m-ret       | line             | end    | create headline below line   |
> | m-ret twice | line             | end    | create item below line       |
> |-------------+------------------+--------+------------------------------|
>
> Notes:
>
>   - C-RET (in all contexts) creates new headline ABOVE (not
>     below) the current entry
>
>   - "beg" does not only refer to beginning of line.  it also
>     refers to the blank spaces before a list item or stars
>     and space in a headline
>
> I should mention that M-RET still takes several seconds.
>
> Also, C-RET and M-RET currently seem to be identical?

Yes, that was part of the problem -- too many keys doing the same thing.

I still think it's pretty important to have an option for creating a new
headline *below* all the contents of the current subtree -- what C-RET
used to do.

Also, the above provides a whole lot of options for creating a new
headline/item above the current line -- is that really such a common
thing to do?

And the variable `org-M-RET-may-split-line' is still not taken into
account...

Eric




reply via email to

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