Re: [sage-devel] emacs, SageTeX, multiple major modes

2014-07-09 Thread Dan Drake
On Wed, 09 Jul 2014 at 02:26PM -0600, Ivan Andrus wrote: > No problem! I munch elisp for breakfast. :-) Well, parentheses do look a bit like cereal... :) Here's the pull request, let me know what you think: https://bitbucket.org/gvol/sage-mode/pull-request/5/add-mmm-support-to-sage-latexel/diff

Re: [sage-devel] emacs, SageTeX, multiple major modes

2014-07-09 Thread Ivan Andrus
On Jul 9, 2014, at 2:11 PM, Dan Drake wrote: > On Wed, 09 Jul 2014 at 01:03PM -0600, Ivan Andrus wrote: >> 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 reque

Re: [sage-devel] emacs, SageTeX, multiple major modes

2014-07-09 Thread Dan Drake
On Wed, 09 Jul 2014 at 01:03PM -0600, Ivan Andrus wrote: > 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). I'll make a pull req

Re: [sage-devel] emacs, SageTeX, multiple major modes

2014-07-09 Thread Ivan Andrus
On Jul 9, 2014, at 12:24 PM, Dan Drake 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

[sage-devel] emacs, SageTeX, multiple major modes

2014-07-09 Thread Dan Drake
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. http