Path: utzoo!attcan!uunet!snorkelwacker!usc!cs.utexas.edu!rutgers!mcnc!rti!talos!kjones From: kjones@talos.pm.com (Kyle Jones) Newsgroups: comp.emacs Subject: Re: Problem with rmail (maybe saveconf) Message-ID: <1990Jul11.135040.19514@talos.pm.com> Date: 11 Jul 90 13:50:40 GMT References: <933@progress.UUCP> <1990Jul9.141448.15783@talos.pm.com> <1990Jul9.173737.26777@sics.se> Lines: 17 Anders G|ransson writes about trouble using saveconf.el: > The files are there when I enter emacs BUT the buffer has > forgotten which mode it was in. For exampel, if I exit emacs (with C-x C-c) > from Rmail-mode, then when I enter emacs again there is the file RMAIL > but the buffer is now in Fundamental-mode. This is not what I hoped for! > > There must be some way to tell emacs that the mode should be > kept the same! The standard way to cause a file to be visited under w particular major mode is to add a pattern for that type of file in auto-mode-alist. I.e. (setq auto-mode-alist (cons '("RMAIL$" . rmail-mode) auto-mode-alist)) I don't know whether calling rmail-mode in this fashion will work as expected or not.