I'm using elixir-mode in the .ex file below, but I'd like to be in web-mode while inside the ~L""" inline template. How to configure web-mode to do this?

enter image description here

  • I think you can use the mmm-mode package for this, but I have never used it before. However, instructions are given in its info file (for example, for interactive usage see section 1.3 here). Sep 26, 2021 at 10:40
  • @dalanicolai I tried mmm-mode following these instructions but it only provided highlighting, no other web-mode functions.
    – Gavin
    Sep 27, 2021 at 11:57
  • Too bad. I could not find another easy alternative to achieve it. You might want to use an indirect buffer then, or narrow-indirect.el Sep 27, 2021 at 19:10


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.