This question already has an answer here:
This is kind of a weird question, but I have a file that's a mix of perl, text, and Bourne shell. Is there some (easy) way to have emacs switch major modes at different points in the file?
Perhaps when it sees
-*- Text -*- or
-*- Perl -*- or something?
Or can I just change it for the region if I
I just noticed that there is a tag for "multiple-modes", so I'm hopeful.