Gnus development mailing list
 help / color / mirror / Atom feed
* Integrating Gnus into Emacs
@ 1998-05-27 20:27 Ralph Schleicher
  1998-05-28  7:50 ` Kai Grossjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Ralph Schleicher @ 1998-05-27 20:27 UTC (permalink / raw)


My girl friend started reading and writing mail using Emacs a few weeks
ago.  Since she is a real Computer/Unix/Emacs novice, I had to replace
the standard Emacs mail commands with Gnus equivalents.  I ended up with
the following code in her personal Emacs initialization file:

;;; Replace the standard mail commands with Gnus equivalents.

(defun gnus-mail ()
  "Start composing a mail."
  (interactive)
  (unless (get-buffer "*Group*")
    (save-window-excursion (gnus)))
  (gnus-group-mail))

(define-key ctl-x-map "m" 'gnus-mail)
(define-key-after menu-bar-tools-menu [rmail]
  '("Read Mail" . gnus) 'gnus)
(define-key-after menu-bar-tools-menu [compose-mail]
  '("Send Mail" . gnus-mail) 'rmail))

Maybe this code is useful for the FAQ.

-- 
Ralph


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Integrating Gnus into Emacs
  1998-05-27 20:27 Integrating Gnus into Emacs Ralph Schleicher
@ 1998-05-28  7:50 ` Kai Grossjohann
  1998-05-28  8:34   ` Christophe Broult
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Grossjohann @ 1998-05-28  7:50 UTC (permalink / raw)
  Cc: ding

>>>>> Ralph Schleicher <rs@purple.UL.BaWue.DE> writes:

  > ;;; Replace the standard mail commands with Gnus equivalents.

You might also want to have a look at the variable mail-user-agent.
You could try to set this variable to message-user-agent instead of
your code -- does that make sense?

kai
-- 
A black hole has no hair.  (John Wheeler)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Integrating Gnus into Emacs
  1998-05-28  7:50 ` Kai Grossjohann
@ 1998-05-28  8:34   ` Christophe Broult
  0 siblings, 0 replies; 3+ messages in thread
From: Christophe Broult @ 1998-05-28  8:34 UTC (permalink / raw)
  Cc: Ralph Schleicher, ding

Kai Grossjohann <grossjohann@charly.cs.uni-dortmund.de> writes:

> >>>>> Ralph Schleicher <rs@purple.UL.BaWue.DE> writes:
> 
>   > ;;; Replace the standard mail commands with Gnus equivalents.
> 
> You might also want to have a look at the variable mail-user-agent.
> You could try to set this variable to message-user-agent instead of
> your code -- does that make sense?

Yes it does but setting message-user-agent doesn't change the behavior
of the "Tools/Read mail" menu item to call gnus. I believe that should
be the case if we want to get something consistent ie not reading mail
with RMAIL and sending mail with GNUS when mail-user-agent is set to
message-user-agent. So I consider the following lines as useful:

> > (define-key-after menu-bar-tools-menu [rmail]
> >   '("Read Mail" . gnus) 'gnus)


Chris

> 
> kai
> -- 
> A black hole has no hair.  (John Wheeler)
> 
> 

-- 
// Christophe Broult            mailto:christophe.broult@info.unicaen.fr   
// GREYC            http://www.info.unicaen.fr/greyc/BienvenueGREYC.html
// Voice: 02 31 56 59 43                             Fax: 02 31 56 58 14


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-05-28  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-27 20:27 Integrating Gnus into Emacs Ralph Schleicher
1998-05-28  7:50 ` Kai Grossjohann
1998-05-28  8:34   ` Christophe Broult

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).