emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: zwz <zhangweize@gmail.com>
To: emacs-orgmode@gnu.org
Subject: About indentation when the src block is under a list
Date: Sun, 28 Apr 2013 18:59:19 +0800	[thread overview]
Message-ID: <87zjwix6ns.fsf@gmail.com> (raw)

--text follows this line--

Here is an example:

* array
** search
   - example
  /* find score in scores
   ,* return the index if found or -1 */
  int search(int scores[], int n, int score){
    int i = 0;
    for(; i<n; ++i) if(scores[i]==score) return i;
    return -1;

   - test

The indentation of the src block is OK, but it is relative to the
second-level headline ("**search"), rather than the list "- example".

In this way, I can not create another list item ("- test") at the point
(illustrated by <point>) by Alt+Enter.

I tried the variable org-indent-indentation-per-level,
org-adapt-indentation and so on, but failed to indent the src block
relative to the list item. So anyone please give me some hint.

             reply	other threads:[~2013-04-28 10:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-28 10:59 zwz [this message]
2013-04-28 15:49 ` About indentation when the src block is under a list Charles Berry
2013-04-30 12:48   ` zwz

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:

  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=87zjwix6ns.fsf@gmail.com \
    --to=zhangweize@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).