emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Jarmo Hurri <jarmo.hurri@syk.fi>, emacs-orgmode@gnu.org
Subject: Re: Indenting source code blocks in lists
Date: Sun, 29 Jan 2012 00:56:17 +0100	[thread overview]
Message-ID: <87ipjvqt3y.fsf@gnu.org> (raw)
In-Reply-To: <87ty3jetku.fsf@altern.org> (Bastien's message of "Wed, 25 Jan 2012 15:37:53 +0100")

Bastien <bzg@altern.org> 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-<right> 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

  reply	other threads:[~2012-01-28 23:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-25  6:03 Indenting source code blocks in lists Jarmo Hurri
2012-01-25  6:46 ` Bastien
2012-01-25 12:09   ` Nicolas Goaziou
2012-01-25 14:37     ` Bastien
2012-01-28 23:56       ` Bastien [this message]
2012-01-25  9:42 ` Phil (Philip) Mason
2012-01-25 10:12 ` Jambunathan K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipjvqt3y.fsf@gnu.org \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=jarmo.hurri@syk.fi \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).