emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Charles Berry <ccberry@ucsd.edu>
To: emacs-orgmode@gnu.org
Subject: Re: About indentation when the src block is under a list
Date: Sun, 28 Apr 2013 15:49:16 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130428T174416-32@post.gmane.org> (raw)
In-Reply-To: 87zjwix6ns.fsf@gmail.com

zwz <zhangweize <at> gmail.com> writes:

> Here is an example:
> * array
> ** search
>    - example
>   #+BEGIN_SRC c
>   /* 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;
>   }
>   #+END_SRC
>   <point>
>    - test

If you want a manual fix, put point in the begin_src line then use 

      <M-right>  <down> C-c ' C-c '

that's org-metaright, next-line, org-edit-special, org-edit-src-exit


  reply	other threads:[~2013-04-28 15:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-28 10:59 About indentation when the src block is under a list zwz
2013-04-28 15:49 ` Charles Berry [this message]
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=loom.20130428T174416-32@post.gmane.org \
    --to=ccberry@ucsd.edu \
    --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).