help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to force noweb mode to use code-mode?


From: Peter Milliken
Subject: Re: How to force noweb mode to use code-mode?
Date: Mon, 17 Aug 2009 09:45:13 +1000

I have the following as the first line of all my C++ .nw files:

-*- noweb-code-mode: c-mode; -*-

This tells noweb which major mode to switch when the code mode is entered. Just change it as appropriate for whatever language you are using i.e. I use 

-*- noweb-code-mode: python-mode; -*-

when coding Python noweb files.

Peter

On Sun, Aug 16, 2009 at 3:47 AM, wewwew <wew036@cs.usask.ca> wrote:
Hi,
I am using noweb mode in Emacs to write noweb programs (LaTeX + C++).
It recognizes LaTeX fine.  However, in most cases it cannot recognize
C
++ mode correctly.  Is there a command to force noweb to drop into
the
code-mode?  That way I can define a hot key to manually convert to
code-mode when it is not correct.
Thanks!
-Wenguang


reply via email to

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