On Sat, Nov 21, 2009 at 06:34:12PM -0800, Les Harris wrote: > > Using a file local variable for the files with no extension would be one > option. ie, adding: > > -*- mode: flyspell; -*- > > to the top of your file would turn flyspell mode on. This is only > useful for files you visit often though. > > Alternatively, you can add an element to magic-mode-alist which makes > emacs match a given regular expression or match function against the > file being opened and setting the given mode. This method is only Yes, thanks I might have a play with this at some stage, but it is probably easier if I just use the txt extention:) Also, speaking of this can you show me the sintax of how I would automatically set message-mode for a filename containing the words "mutt-localhost"? Thanks -- Cheers, Dan http://members.iinet.net.au/~ddalton/