Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!uflorida!novavax!hcx1!hcx2!tom From: tom@hcx2.SSD.HARRIS.COM Newsgroups: comp.emacs Subject: Re: Editing letters in text-mode with e Message-ID: <94600017@hcx2> Date: 21 Feb 89 12:02:00 GMT References: <156@imada.dk> Lines: 20 Nf-ID: #R:imada.dk:156:hcx2:94600017:000:802 Nf-From: hcx2.SSD.HARRIS.COM!tom Feb 21 07:02:00 1989 If the file name being edited can be recognized automatically (i.e. it is always something like '/tmp/elm[a-f0-9]*') you can add a pattern that will recognize the name to auto-mode-alist: (setq auto-mode-alist (cons (cons "^/tmp/elm[a-f0-9]*" 'text-mode) auto-mode-alist) ) I do something like this to recognize the temp files created by the 'notes' program and automatically insert my .signature I don't use elm, so I don't know if this is possible or not. ===================================================================== usenet: tahorsley@ssd.harris.com USMail: Tom Horsley compuserve: 76505,364 511 Kingbird Circle genie: T.HORSLEY Delray Beach, FL 33444 ======================== Aging: Just say no! ========================