I work a lot with Typescript files for Angular 2. The whole HTML structure is packaged in a quote. I would like to select that quote, and edit it in another mode (HTML/Web mode), then save it back to the buffer with the Typescript mode.

I knew there is another package for that, but I cannot find it back. Even not on emacs.zeef.com and Google.

Does anyone recognize which package I mean?

  • 1
    You might want to look into polymode. – ebpa Feb 7 '17 at 20:33
  • 3
    You can also try mmm-mode. – Dan Feb 7 '17 at 22:27
  • Also have a look at indirect buffers in the emacs manual. – Andrew Swann Feb 14 '17 at 16:32
  • I've used nXhtml for such editing. – Emacs User Feb 18 '17 at 14:15

You are probably looking for edit-indirect:

Edit regions in separate buffers, like `org-edit-src-code' but for arbitrary regions.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.