Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!bbn!gateway!THEORY.LCS.MIT.EDU!bard From: bard@THEORY.LCS.MIT.EDU Newsgroups: comp.emacs Subject: Editing letters in text-mode with emacs under the elm mailer Message-ID: <8902200131.AA06222@hummingbird.LCS.MIT.EDU> Date: 20 Feb 89 01:31:48 GMT References: <156@imada.dk> Sender: news@bbn.COM Organization: BBN news/mail gateway Lines: 16 > Problem: when invoking emacs from within elm I would like it to > automatically edit the temporary letter file in text-mode. Normally, > typing the command: If you have a pattern matching elm's temporary file names, you can use auto-mode-alist -- something like: (setq auto-mode-alist (cons '("letterfile$" . text-mode) auto-mode-alist)) which will turn on text mode whenever you edit a file whose name ends with the string "letterfile". -- Bard the emacs gargoyle