Re: mutt and the running emacs
On Tue, Apr 24, 2001 at 08:12:54AM -0700, Jim McCloskey wrote: > Within mutt, I have the editor set to emacs. But I always have > emacs running anyway, so there's an annoying duplication when > mutt starts its own emacs session. Is there any way to cause > mutt to use an already running emacs as its editor? Hi, I don't use Emacs with mutt, but the following may be of some help. First the Emacs part: in your .emacs file put the line (server-start) This starts the Emacs server. Now you can use the 'emacsclient' program to make your principal Emacs visit any file. To test that it works, you can do emacsclient foo.txt in an Xterm. This should open a buffer containing foo.txt in your main Emacs. When you've finished editing the buffer, type 'C-x #' to tell 'emacsclient' that you are through. Now for the mutt aspect: in your .muttrc put the line set editor=emacsclient Now whenever you want to compose a message, mutt will open a buffer in your principal Emacs. To finish editing the message, type 'C-x #' as above. Note that this will work only if you start your Emacs session before invoking mutt. Best, Raghavendra. -- N. Raghavendra| GnuPG signed/encrypted mail [EMAIL PROTECTED]| welcome. Key ID: 03618806. Harish-Chandra Research Institute |C75D D0AF 457E 7454 BEC2 http://www.mri.ernet.in/~raghu/ |37AD C6E1 0407 0361 8806
Re: mutt and the running emacs
On Tue, Apr 24, 2001 at 08:12:54AM -0700, Jim McCloskey wrote: > [snip] > I'm migrating from emacs RMAIL to mutt and liking it (mutt) more and > more. Within mutt, I have the editor set to emacs. But I always have > emacs running anyway, so there's an annoying duplication when mutt > starts its own emacs session. Is there any way to cause mutt to use an > already running emacs as its editor? Sure is. Put this in your .emacs ;;; Load gnuserv, which will allow you to connect to XEmacs sessions ;;; using `gnuclient'. ;; If you never run more than one XEmacs at a time, you might want to ;; always start gnuserv. Otherwise it is preferable to specify ;; `-f gnuserv-start' on the command line to one of the XEmacsen. ;;; Reuse existing xemacs by starting server. ;;; Use existing frame not a new one. (gnuserv-start) ;;;(setq gnuserv-frame t) Add this to your .muttrc set editor="gnuclient" Jonathan
Re: mutt and the running emacs
At Tue, 24 Apr 2001 08:12:54 -0700 , Jim McCloskey <[EMAIL PROTECTED]> wrote: >I'm migrating from emacs RMAIL to mutt and liking it (mutt) more and >more. Within mutt, I have the editor set to emacs. But I always have >emacs running anyway, so there's an annoying duplication when mutt >starts its own emacs session. Is there any way to cause mutt to use an >already running emacs as its editor? > Check the emacs documentation on how to run the emacs-client/server... back when I used emacs I remember finding pages on the web about using the emacs-client with mutt. A quick google search shows ... http://www.stud.ifi.uio.no/~jani/mutt/muttemacs.html Get your own FREE E-mail address at http://www.linuxfreemail.com Linux FREE Mail is 100% FREE, 100% Linux, and 100% yours!
mutt and the running emacs
This is really a mutt question rather than a debian question, but there seem to be a lot of mutt wizards on this list, so I'll risk it. I've read what's available in /usr/share/doc/mutt and at the mutt site, but can't find the answer to this question: I'm migrating from emacs RMAIL to mutt and liking it (mutt) more and more. Within mutt, I have the editor set to emacs. But I always have emacs running anyway, so there's an annoying duplication when mutt starts its own emacs session. Is there any way to cause mutt to use an already running emacs as its editor? (I'm using version 1.2.5 in stable.) Thanks very much for any advice, Jim McCloskey