5

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?

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

1 Answer 1

1

You are probably looking for edit-indirect:

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

Your Answer

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

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