First of all, such a question would be better directed to gnu.emacs.help. Second, you do not need to do anything, Emacs is able to guess the right mode by itself. Sam -- Samuel Tardieu -- [log in to unmask]