You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First I am totally incompetent about lisp. In fact I am trying to adapt asy-mode (from the
Asymptote distribution) with mmm-mode. asy-mode contains a lasy-mode which gives
with two-mode.el the possibility to have highlight asymptote code into a LaTeX file.
Since it seems that two-mode does not work with emacs 24 or emacs 25, or at least that the two proposed modifications produce error with auctex+asy-mode, I tried mmm-mode.
Asy-mode is based on objc-mode. If I add asy-mode to the variable mmm-c-derived-modes
it seems to be ok with Emacs 24. It is a good news.
But with Emacs 25 I remarked a difference behavior which is not related to asy-mode.
For example the following LaTeX code which contains objc code is not highlighted
(the above part) due to the only to for (...) part (another objc code is ok)
It gives a backtrace, and the first time I tried it it led to a variable we needed to save and set in CC Mode subregions (see the linked commit). But that led to a second backtrace which I don't have enough energy to decipher.
Either way, CC Mode has very poor compatibility with mmm-mode, among other things, because of how it treats narrowing. Try using js-mode instead of objc-mode. The former is not very strict about syntax, and it should give you decent experience.
Many thanks for you kind answer.
Since I am not able to understand the message of (font-lock-fontify-region (point-min) (point-max)) I will follow your advice : js-mode.
Hello
First I am totally incompetent about lisp. In fact I am trying to adapt asy-mode (from the
Asymptote distribution) with mmm-mode. asy-mode contains a lasy-mode which gives
with two-mode.el the possibility to have highlight asymptote code into a LaTeX file.
Since it seems that two-mode does not work with emacs 24 or emacs 25, or at least that the two proposed modifications produce error with auctex+asy-mode, I tried mmm-mode.
Asy-mode is based on objc-mode. If I add
asy-mode
to the variablemmm-c-derived-modes
it seems to be ok with Emacs 24. It is a good news.
But with Emacs 25 I remarked a difference behavior which is not related to asy-mode.
For example the following LaTeX code which contains objc code is not highlighted
(the above part) due to the only to
for (...)
part (another objc code is ok)Here my configuration (in fact I am using spacemacs)
Is related to cc-mode, mmm-mode or auctex ?
Regards
O.G.
The text was updated successfully, but these errors were encountered: