Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!uakari.primate.wisc.edu!csd4.csd.uwm.edu!cs.utexas.edu!uunet!mcsun!sunic!dkuug!iesd!leibniz!lbn From: lbn@mcs.auc.dk ( Lars Bo Nielsen ) Newsgroups: gnu.emacs.gnus Subject: Re: Rmail-input for Current Group Message-ID: Date: 1 Sep 89 06:05:55 GMT References: Sender: lbn@mcs.auc.dk (Lars Bo Nielsen) Distribution: gnu Organization: Mathematics and Computer Science, University of Aalborg Lines: 24 In-reply-to: sheffler@maxwell.CS.CMU.EDU's message of 31 Aug 89 13:32:29 GMT In article sheffler@maxwell.CS.CMU.EDU (Thomas Sheffler) writes: I save posts in Rmail files in ~/News and got tired of having to invoke rmail-input by typing M-x rmail-input /usr/sheffler/News/comp.sys.amiga or whatever. I also got tired of having to invoke rmail when I visited files written by gnus in rmail format, so I put the following in my .emacs. Now every time an rmail-file is found, rmail automaticly starts up. (setq find-file-hooks (cons 'my-rmail-find-file find-file-hooks)) (defun my-rmail-find-file () (and (looking-at "BABYL OPTIONS") (progn (if (featurep 'rmail) () (message "Hmm... Looks like an rmail file. Loading rmail...") (require 'rmail)) (rmail-mode) (rmail-last-message) ; Dummy to get rmail-mode to behave (message "You are in rmail-mode..."))))