Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!umix!utah-gr!cdr.utah.edu!moore From: moore%cdr.utah.edu.uucp@utah-gr.UUCP (Tim Moore) Newsgroups: comp.emacs Subject: Re: (none) Message-ID: <2547@utah-gr.UUCP> Date: 20 May 88 05:55:26 GMT References: <8805191207.AA09025@mitre-bedford.ARPA> Sender: news@utah-gr.UUCP Reply-To: moore%cdr.utah.edu.UUCP@utah-gr.UUCP (Tim Moore) Organization: University of Utah CS Dept Lines: 36 In article <8805191207.AA09025@mitre-bedford.ARPA> jfjr@MITRE-BEDFORD.ARPA (Freedman) writes: > >... I am trying to arrange things so that when I go into rmail >I get rmail-summary. I have experimented with lall kinds of variations >of lines in my .emacs such as > > (setq rmail-mode-hook 'rmail-summary) ;gets an error "integer or nil > (setq rmail-mode-hook '(rmail-summary)) ; same error > (setq rmail-mode-hook '((rmail-summary))); get "wrong function > > Now obviously I am missing something (this time you can't say RTFM >folks ;) ). Enlighten me? > I think the problem is that rmail-summary depends on some of rmail's internal variables; these don't have meaningful values at the time that hooks are run. Therefore, rmail-summary isn't suitable to run as a hook. Putting the following in your .emacs file will do what you want: (defun mymail () "Runs rmail and rmail-summary." (interactive) (rmail) (rmail-summary)) You can invoke this with M-x mymail. -Tim Moore 4560 M.E.B. internet:moore@cs.utah.edu University of Utah ABUSENET:{ihnp4, decvax}!utah-cs!moore Salt Lake City, UT 84112