From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: M-RET and C-RET turn current line of text into a heading? Date: Wed, 15 May 2013 11:39:32 -0700 Message-ID: References: <87r4h83kld.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucgbw-0005jf-0N for emacs-orgmode@gnu.org; Wed, 15 May 2013 14:39:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ucgbv-0007cb-2D for emacs-orgmode@gnu.org; Wed, 15 May 2013 14:39:35 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:49003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucgbu-0007cR-O3 for emacs-orgmode@gnu.org; Wed, 15 May 2013 14:39:34 -0400 Received: by mail-wi0-f180.google.com with SMTP id hn14so1957429wib.13 for ; Wed, 15 May 2013 11:39:33 -0700 (PDT) In-Reply-To: <87r4h83kld.fsf@ericabrahamsen.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Abrahamsen Cc: emacs-orgmode@gnu.org 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? Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it.