Path: utzoo!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!ODDJOB.UCHICAGO.EDU!matt From: matt@ODDJOB.UCHICAGO.EDU (Matt Crawford) Newsgroups: comp.mail.mh Subject: Re: Default editor switches in .mh_profile Message-ID: <9103131705.AA23066@oddjob.uchicago.edu> Date: 13 Mar 91 17:05:43 GMT References: <9103111635.AA03682%caligula@ansa.co.uk> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 20 There are at least two ways to do the job. One is to create, somewhere in your path, a file called emacs-text-mode, mode 755, which contains: #!/bin/sh exec emacs -f text-mode $* Then use "Editor: emacs-text-mode" in .mh_profile. The other way is to put this into your .emacs file: (setq auto-mode-alist (nconc '(("draft$" . text-mode) ("Mail/drafts/[0-9]+$" . text-mode)) auto-mode-alist)) and continue to use "Editor: emacs". See C-H v auto-mode-alist to understand this. ________________________________________________________ Matt Crawford matt@oddjob.uchicago.edu