Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!mcnc!duke!khera From: khera@thneed.cs.duke.edu (Vick Khera) Newsgroups: comp.mail.mh Subject: Re: mh editors Message-ID: Date: 1 Mar 91 16:40:27 GMT References: <11564@pasteur.Berkeley.EDU> Sender: news@duke.cs.duke.edu Organization: Duke University CS Dept., Durham, NC Lines: 25 Nntp-Posting-Host: thneed.cs.duke.edu In-reply-to: smoot@roger-rabbit.Berkeley.EDU's message of 1 Mar 91 10:24:32 GMT In article <11564@pasteur.Berkeley.EDU> smoot@roger-rabbit.Berkeley.EDU (Stephen R. Smoot) writes: I've been trying to customize my mh scripts to do the following, but havent found a good answer. I'm working on a SPARC, and always have an emacs around. I'd like for repl to just format the reply header and print where it is located, so I can load it into emacs. assumption: you are using GNU emacs. how about using emacs' server mode? i always have an emacs around like you do. whenever i want to edit a file, i just run the client program and tell it which file to edit. i don't use the default server/client that comes with emacs, i use Andy Norman's gnuserv package. in any case, in .mh_profile, you can set Editor to be gnuclient (or emacsclient) and make sure that your emacs has a server running. then whenever you comp or repl or forw or anything that uses an editor in mh, it will just stick it in your emacs buffer and let you edit. you don't need to find it manually. when you are done, just kill the buffer, and the whatnow prompt comes up in the original window. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera, Gradual Student/Systems Guy Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528