From: zwz <zhangweize@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: About indentation when the src block is under a list
Date: Tue, 30 Apr 2013 20:48:04 +0800 [thread overview]
Message-ID: <87vc74w5ff.fsf@gmail.com> (raw)
In-Reply-To: loom.20130428T174416-32@post.gmane.org
Thanks! :)
Charles Berry <ccberry@ucsd.edu> writes:
> 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,
prev parent reply other threads:[~2013-04-30 12:26 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
2013-04-30 12:48 ` zwz [this message]
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=87vc74w5ff.fsf@gmail.com \
--to=zhangweize@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).