Emacs: Set correct mode when creating buffer