Font lock runs in a series of hooks to make it feel like it’s running in the
background. If something throws an error in font lock, it gets shut off.
In a fresh emacs, load up an offending M file, and check your *Messages* buffer
to see if there is anything there.
If not, you may need to lower the font lock level to find out which level
causes the error. To do that:
M-x customize-variable RET font-lock-maximum-decoration RET
I think there are 3 levels so you can pick 1, 2, or 3, or leave at ‘maximum’.
I haven’t used this option in a very long time, but suspect you may need to
kill your MATLAB buffer and open it again to have the option take effect.
Eric
From: Tyler Morgan [mailto:a.tyler.mor...@gmail.com]
Sent: Monday, February 27, 2017 2:34 PM
To: matlab-emacs-discuss@lists.sourceforge.net
Subject: [Matlab-emacs-discuss] Syntax highlighting not working
I recently installed matlab-emacs on emacs 26.0.50 on Ubuntu. Everything seems
to be working properly, but I am not getting syntax highlighting when opening
*.m files using global-font-lock-mode. I do however get highlighting in the
matlab-shell.
I'm not sure exactly what other information might be relevant for teasing out
this issue, but it makes matlab-mode difficult to use.
Thanks,
Tyler
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss