emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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:03:24 +0000	[thread overview]
Message-ID: <CAJferG_24Jt8pJzs6gEEHnemfv_9_JhM14viYuDPB0NK87T0BQ@mail.gmail.com> (raw)
In-Reply-To: <87sisxtoer.fsf@bzg.ath.cx>

[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]

> 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 <bzg@altern.org> wrote:

> Yi Wang <tririverwangyi@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
> > 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
>

[-- Attachment #2: Type: text/html, Size: 3089 bytes --]

  reply	other threads:[~2014-01-09 11:03 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 [this message]
2014-01-09 11:15         ` Bastien
2014-01-09 11:31           ` Yi Wang
2014-01-09 11:49             ` Yi Wang
  -- 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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJferG_24Jt8pJzs6gEEHnemfv_9_JhM14viYuDPB0NK87T0BQ@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).