Patrick Drechsler <[EMAIL PROTECTED]> 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 _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode