From: Yi Wang <tririverwangyi@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Babel language support for Mathematica
Date: Thu, 9 Jan 2014 11:49:24 +0000 [thread overview]
Message-ID: <CAJferG9hYekOV-Cu31wa7ShBCyzFVq36pJ09mu9V6vX_rZKY8w@mail.gmail.com> (raw)
In-Reply-To: <CAJferG-gY2JqcfDiCfCeO7hNWchChD2i6w1g4NziiWxMxWZSSA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]
Now it worked. I added (add-to-list 'org-src-lang-modes '("mathematica" .
"mma")). After that font lock and edit source works. Thank @Bastien for the
help!
On Thu, Jan 9, 2014 at 11:31 AM, Yi Wang <tririverwangyi@gmail.com> wrote:
> Ah, now the problem appears. It says "No such language mode:
> mathematica-mode".
>
> So there is a mismatch between the name mathematica (which I used as name
> in org-babel extension) and the name mma-mode (which is provided by
> mma.el).
>
> However, as auto-mode-alist suggests (where there is ("\\.m\\'" .
> mma-mode), and no entry with mathematica-mode), I still have no idea
> why org-edit-special looks for mathematica-mode instead of mma-mode.
>
>
> On Thu, Jan 9, 2014 at 11:15 AM, Bastien <bzg@altern.org> wrote:
>
>> Yi Wang <tririverwangyi@gmail.com> writes:
>>
>> > (1) If I open a .m file, there is font lock. Thus the problem
>> > shouldn't be binding between mma.el and .m files.
>> > (2) If I insert a src block of C or python code in org mode, there is
>> > font lock. Thus the problem shouldn't be org-src-fontify-natively
>> > (and I checked it is indeed t).
>>
>> What happen if you C-c ' on a .m block?
>>
>> --
>> Bastien
>>
>
>
[-- Attachment #2: Type: text/html, Size: 2094 bytes --]
next prev parent reply other threads:[~2014-01-09 11:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-09 3:46 Babel language support for Mathematica Yi Wang
2014-01-09 10:28 ` Bastien
2014-01-09 10:34 ` Sebastien Vauban
2014-01-09 10:39 ` Bastien
2014-01-09 10:51 ` Yi Wang
2014-01-09 10:55 ` Bastien
2014-01-09 11:03 ` Yi Wang
2014-01-09 11:15 ` Bastien
2014-01-09 11:31 ` Yi Wang
2014-01-09 11:49 ` Yi Wang [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-03-13 23:06 Richard Stanton
2015-03-13 23:09 ` John Kitchin
2015-03-13 23:16 ` Yi Wang
2015-03-15 17:26 ` Richard Stanton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJferG9hYekOV-Cu31wa7ShBCyzFVq36pJ09mu9V6vX_rZKY8w@mail.gmail.com \
--to=tririverwangyi@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.