|
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 > #+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 #+BEGIN_SRC c int main(void) { return 0; } #+END_SRC And then C-c ' anywhere inside the block HTH -Bernt
[Prev in Thread] | Current Thread | [Next in Thread] |