From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Indenting source code blocks in lists Date: Sun, 29 Jan 2012 00:56:17 +0100 Message-ID: <87ipjvqt3y.fsf@gnu.org> References: <878vkws4it.fsf@syk.fi> <874nvknuss.fsf@gnu.org> <87d3a8f0fq.fsf@gmail.com> <87ty3jetku.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrI6w-0007Ra-RE for emacs-orgmode@gnu.org; Sat, 28 Jan 2012 18:55:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RrI6r-00046H-OY for emacs-orgmode@gnu.org; Sat, 28 Jan 2012 18:55:10 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:44707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrI6r-00045w-IL for emacs-orgmode@gnu.org; Sat, 28 Jan 2012 18:55:05 -0500 Received: by wibhj13 with SMTP id hj13so3031764wib.0 for ; Sat, 28 Jan 2012 15:55:04 -0800 (PST) In-Reply-To: <87ty3jetku.fsf@altern.org> (Bastien's message of "Wed, 25 Jan 2012 15:37:53 +0100") 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: Nicolas Goaziou Cc: Jarmo Hurri , emacs-orgmode@gnu.org Bastien writes: > The attached patch let `org-metaright' indent a drawer or a block > correctly. It introduces two new function ̀org-indent-block' and > `org-indent-drawer' which derive from local hacks I'm using quite > often now. > > Perhaps ̀org-metaright' is not the best keybinding for this function, > please suggest a better one. I've tested this patch and just applied it. Using M- on a drawer keyword (like ":PROPERTIES:") will indent the whole drawer. org-metaright looks quite natural most of the time, since the purpose is to realign the drawer with the headline/paragraph above, and statistically (?) headlines are more often refiles to subsubtrees than to trees. -- Bastien