emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] About indentation when the src block is under a list


From: Charles Berry
Subject: Re: [O] About indentation when the src block is under a list
Date: Sun, 28 Apr 2013 15:49:16 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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

HTH,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]