Jason Grout wrote:
> Nicolas M. Thiery wrote:
>>
>>  - Is there general support in emacs for switching between two modes,
>>    depending on whether one is in the code or in comments? I very much
>>    like the rst-mode of emacs, and in the long run it would be great
>>    to edit the doctests in rst-mode and the code in sage-mode.
>>
> 
> I've used noweb-mode for this sort of thing: 
> ftp://ftp.eecs.harvard.edu/pub/nr/noweb/src/elisp/noweb-mode.el
> 
> It's useful in literate programming, where you are jumping back and 
> forth between latex and C blocks of code.
> 


Googling just a bit more turns up the (probably) more useful link:

http://www.emacswiki.org/emacs/MultipleModes

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to