Support for multiple major modes in an Emacs buffer