On Jul 9, 2014, at 12:24 PM, Dan Drake <ddr...@math.wisc.edu> wrote: > Hi, > > Those of you who use SageTeX with emacs and, say, AUCTeX, may be annoyed > when you are editing sageblock environments because of the TeX-like > behavior. Here's a snippet you can use to make emacs use MMM (multiple > major modes) and treat your TeX like TeX, and your Sage code like Sage > code.
Sweet! Would you mind if I added it to sage-mode? There is already a sage-latex.el which does some AUCTeX specific setup. I would be willing to do it, or you can create a pull request (thereby getting credit). > https://gist.github.com/dandrake/6d7e46f36cecab6d89bc > > You'll need MMM (https://github.com/purcell/mmm-mode) and perhaps also > our own sage-mode. > > Comments welcome -- I've only tested this with one versions of emacs, > and there are some problems with font lock. But it does work! Yes, AUCTeX uses non-standard font locking IIRC. -Ivan -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.