[gnu.emacs.bug] mail mode

kgk@CS.BROWN.EDU (09/28/88)

I think mail-mode should be autoloadable.  It's something people use
all the time, and it's not defined in ``mail-mode.el''.

mdb@silvlis.com (Mark D. Baushke) (09/28/88)

>  From: kgk@cs.brown.edu
>  Date: Wed, 28 Sep 88 09:27:14 EDT
>  To: bug-gnu-emacs@prep.ai.mit.edu
>  
>  I think mail-mode should be autoloadable.  It's something people use
>  all the time, and it's not defined in ``mail-mode.el''.

I think most people use mail instead of mail-mode (mail uses mail-mode
on a new buffer and then adds text to the buffer). The 'mail symbol is
already defined in an (autoload 'mail "sendmail "..." t) in loaddefs.el.

However, if your site feels that mail-mode should be autoloadable,
feel free to put the following into site-init.el at your site.
(Of course, you should then re-build emacs.)

(autoload 'mail-mode "sendmail"
  "\
Major mode for editing mail to be sent.
Like Text Mode but with these additional commands:
C-c C-s  mail-send (send the message)    C-c C-c  mail-send-and-exit
C-c C-f  move to a header field (and create it if there isn't):
	 C-c C-f C-t  move to To:	C-c C-f C-s  move to Subj:
	 C-c C-f C-b  move to BCC:	C-c C-f C-c  move to CC:
C-c C-w  mail-signature (insert ~/.signature at end).
C-c C-y  mail-yank-original (insert current message, in Rmail).
C-c C-q  mail-fill-yanked-message (fill what was yanked)."
  t)


If you want to go a step further, you could place the following into
your site-load.el file instead. After doing so, your re-built and
dumped emacs will have mail already loaded when you start it.

(load "sendmail")
(garbage-collect)


Enjoy!

------------------------------------------------------------------------------
Mark D. Baushke                 Internet:    mdb%silvlis.com@sun.com
Silvar-Lisco, Inc.              Nameservers: mdb@silvlis.com
1080 Marsh Road                 Usenet:      {pyramid,sun}!silvlis!mdb
Menlo Park, CA 94025-1053       Telephone:   +1 415 853-6411 / +1 415 969-8328