Xref: utzoo comp.mail.elm:1107 comp.emacs:5391 gnu.emacs:486 Path: utzoo!attcan!utgpu!watmath!uunet!mcvax!kth!enea!dkuug!imada!larsen From: larsen@imada.dk (Larsen Soren) Newsgroups: comp.mail.elm,comp.emacs,gnu.emacs Subject: Editing letters in text-mode with emacs under the elm mailer Message-ID: <156@imada.dk> Date: 19 Feb 89 15:43:33 GMT Reply-To: larsen@imada.UUCP (Larsen Soren) Organization: Dept. of Mathematics and Computer Science, Odense University, Denmark Lines: 23 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: emacs letterfile -f text-mode will have the desired effect when editing ``letterfile''; but the order of the arguments is significant. Unfortunately, it seems that elm just appends the name of the temporary file to the string given in the ``editor'' field of the elmrc file. Thus setting editor = emacs -f text-mode results in the scratch buffer being edited in text-mode while the letter itself is still in fundamental mode. I have attempted to emulate the syntax of the ``print'' field by setting: editor = emacs %s -f text-mode and end up with a buffer called ``%s'' in text-mode and the letter in fundamental mode. Any suggestions (other than typing ``M-x text-mode'' every time I edit a letter)? -- Soren Larsen / larsen@imada.dk (..uunet!mcvax!dkuug!imada!larsen) Dept. of Math. & Computer Science, Odense University Campusvej 55, DK-5230 Odense M, Denmark phone: +45 9 15 86 00, ext. 2312 / telefax: +45 9 15 81 62