[Top][All Lists]

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

[Orgmode] Re: usage of bgein_src in 'Literal examples' section

From: Bernt Hansen
Subject: [Orgmode] Re: usage of bgein_src in 'Literal examples' section
Date: Wed, 04 Jun 2008 20:30:53 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Patrick Drechsler <address@hidden> writes:

> I like the new feature in "literal examples" using #+BEGIN_SRC <mode>!
> But how do I find which mode Emacs is using for a certain file type?
> I could not figure out how to replace <mode> for simple C or CPP files.
> Here is a simple C file:
> --8<---------------cut here---------------start------------->8---
> int main(void)
> {
>       return 0;
> }
> --8<---------------cut here---------------end--------------->8---
> I have tried different results from `M-x describe-mode' as well as stuff
> like:
> #+BEGIN_SRC c/law
> #+BEGIN_SRC cc
> #+BEGIN_SRC c-mode
> #+BEGIN_SRC cc-mode
> What is the correct <mode> to insert?

This works for me:

* C Source Example
int main(void)
  return 0;

And then C-c ' anywhere inside the block



reply via email to

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