Xref: utzoo comp.mail.elm:1110 comp.emacs:5392 Path: utzoo!attcan!uunet!yale!Ram-Ashwin From: Ram-Ashwin@cs.yale.edu (Ashwin Ram) Newsgroups: comp.mail.elm,comp.emacs Subject: Re: Editing letters in text-mode with emacs under the elm mailer Message-ID: <51144@yale-celray.yale.UUCP> Date: 20 Feb 89 05:12:36 GMT References: <156@imada.dk> Sender: root@yale.UUCP Reply-To: Ram-Ashwin@cs.yale.edu (Ashwin Ram) Organization: Computer Science, Yale University, New Haven, CT 06520-2158 Lines: 25 In-reply-to: larsen@imada.dk (Larsen Soren) In article <156@imada.dk>, larsen@imada.dk (Larsen Soren) writes: > Problem: when invoking emacs from within elm I would like it to > automatically edit the temporary letter file in text-mode. I don't know what elm files look like, but - if they always have similar names, you can add a pattern to the variable auto-mode-alist that will invoke text-mode on those files. E.g., if elm files are always called something like /tmp/elm.45 (I'm making this up), you can add the pair ("/tmp/elm" . text-mode) to auto-mode-alist. - if they always have similar contents, you can use the infer-mode.el program that was posted earlier and add a pattern to the variable infer-mode-alist that will invoke text-mode on those files. E.g., if elm files always contain a "Subject:" line (I'm making this up), you can add the pair ("^Subject:" . text-mode) to infer-mode-alist. [I can send you infer-mode.el if you don't have it.] Hope this helps, -- Ashwin. ARPA: Ram-Ashwin@cs.yale.edu UUCP: {decvax,ucbvax,harvard,cmcl2,...}!yale!Ram-Ashwin BITNET: Ram@yalecs