Now it worked. I added=A0(add-to-list 'org-src-lang-mo=
des '("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 languag= e mode: mathematica-mode".So there is a mismatch b= etween the name mathematica (which I used as name in org-babel extension) a= nd the name mma-mode (which is provided by mma.el).=A0However, as=A0auto-mode-alist suggests (where there is = ("\\.m\\'" . mma-mode), and no entry with mathematica-mode), = I still have no idea why=A0org-edit-special looks for mathematica-mode inst= ead of mma-mode.On Thu, Jan 9, 2014 at 11:15 AM, Bastien <= span dir=3D"ltr"><bz= g@altern.org> wrote:

Yi Wang <tririverwangyi@gmail.com> writes:What happen if you C-c ' on a .m block?

> (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<= br> > font lock. Thus the problem shouldn't be=A0org-src-fontify-nativel= y

> (and I checked it is indeed t).

--

=A0Bastien