From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Pittman Subject: Re: Automatically indent text when return is hit in an org buffer. Date: Tue, 11 Dec 2007 22:17:30 +1100 Message-ID: <87wsrlxyyd.fsf@enki.rimspace.net> References: <87abojxj9s.fsf@enki.rimspace.net> <87ve75v7dt.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J237f-0007uV-6G for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 06:17:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J237a-0007tX-KG for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 06:17:58 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J237a-0007tC-3w for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 06:17:54 -0500 Received: from 203-217-31-68.perm.iinet.net.au ([203.217.31.68] helo=anu.rimspace.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J237Y-0002zD-JG for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 06:17:53 -0500 In-Reply-To: <87ve75v7dt.fsf@bzg.ath.cx> (Bastien's message of "Tue, 11 Dec 2007 11:43:42 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > Daniel Pittman writes: > >> G'day. I am a fan of `newline-and-indent', and turn it on for most >> of the modes I routinely use, since it is almost always what I want >> done. [...] > I think having a new option is not the best solution. I would prefer > to preserve the distinction between the two commands (RET and C-j). > > The patch below does this: define org-return-indent and bind it to > C-j. Whether you want to bind it to RET is up to you. Well, the approach seems perfectly reasonable to me, and I can achieve the same result; I fully support your approach. [...] >> If this isn't the right approach I am happy to rework the patch to >> better match the rest of the software. > > Thanks for pointing out this issue and for the patch! I don't know > what Carsten will do with this, but having two solutions is certainly > good :) Mmm. I suspect that your approach is the better one; it is more in keeping with the rest of Emacs, I think, and certainly achieves my goal. Thanks, Daniel -- Daniel Pittman Phone: 03 9428 6922 1/130-132 Stawell St, Richmond Web: http://www.cyber.com.au Cybersource: Australia's Leading Linux and Open Source Solutions Company