From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yi Wang Subject: Re: Babel language support for Mathematica Date: Thu, 9 Jan 2014 11:03:24 +0000 Message-ID: References: <87ha9dwisd.fsf@bzg.ath.cx> <87sisxtoer.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1fd62f2d82a04ef878ec1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1DOY-0001tU-Sw for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 06:03:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1DOX-0008Cq-Ga for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 06:03:26 -0500 Received: from mail-oa0-x234.google.com ([2607:f8b0:4003:c02::234]:44719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1DOX-0008Cc-9k for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 06:03:25 -0500 Received: by mail-oa0-f52.google.com with SMTP id o6so3220996oag.11 for ; Thu, 09 Jan 2014 03:03:24 -0800 (PST) In-Reply-To: <87sisxtoer.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org --001a11c1fd62f2d82a04ef878ec1 Content-Type: text/plain; charset=ISO-8859-1 > I don't think so, you may just have to check that the mode defined in > mma.el is automatically boundled with .m files -- which is not the case > with a default Emacs installation, where .m files are open with > objc-mode. I already have this line in my configuration file: (add-to-list 'auto-mode-alist '("\\.m\\'" . mma-mode)) Now I have (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). This is why I am confused. Actually I don't badly need this feature. Just it would be a little better to have things work properly. Best, Yi On Thu, Jan 9, 2014 at 10:55 AM, Bastien wrote: > Yi Wang writes: > > > Yes, I already set this. But curiously the Mathematica code is still > > not highlighted like other codes. I wonder there may be some > > non-standard things inside mma.el (the Mathematica package file major > > mode) then? > > I don't think so, you may just have to check that the mode defined in > mma.el is automatically boundled with .m files -- which is not the case > with a default Emacs installation, where .m files are open with > objc-mode. > > -- > Bastien > --001a11c1fd62f2d82a04ef878ec1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
> I don't think so, you may just have to check that the mode = defined in
= > mma.el is = automatically boundled with .m files -- which is not the case
> with a def= ault Emacs installation, where .m files are open with
> objc-mode.

=
I already have this line in my configuration file:

(add-to-list 'auto-mode-alist '("\\.m\\'"= ; . mma-mode))

Now I have

(= 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=A0org-src-fontify-natively (and I checked it = is indeed t).

Thi= s is why I am confused. Actually I don't badly need this feature. Just = it would be a little better to have things work properly.

Bes= t,
Yi


On Thu,= Jan 9, 2014 at 10:55 AM, Bastien <bzg@altern.org> wrote:
Yi Wang <t= ririverwangyi@gmail.com> writes:

> Yes, I already set this. But curiously the Mathematica code is still > not highlighted like other codes. I wonder there may be some
> non-standard things inside mma.el (the Mathematica package file major<= br> > mode) then?

I don't think so, you may just have to check that the mode define= d in
mma.el is automatically boundled with .m files -- which is not the case
with a default Emacs installation, where .m files are open with
objc-mode.

--
=A0Bastien

--001a11c1fd62f2d82a04ef878ec1--