[gnu.emacs] Editing letters in text-mode with emacs under the elm mailer

larsen@imada.dk (Larsen Soren) (02/19/89)

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