Path: utzoo!utgpu!watmath!uunet!wuarchive!brutus.cs.uiuc.edu!apple!bionet!rutgers!boulder!boulder.colorado.edu!grunwald From: grunwald@anchor.colorado.edu (Dirk Grunwald) Newsgroups: gnu.emacs Subject: Re: vm-auto-folder-alist -- how? Message-ID: Date: 30 Aug 89 14:44:29 GMT References: <8908301406.AA01144@asylum.gsfc.nasa.gov> Sender: news@boulder.Colorado.EDU Reply-To: grunwald@flute.cs.uiuc.edu Distribution: gnu Organization: University of Colorado, Boulder Lines: 35 In-reply-to: chris@ASYLUM.GSFC.NASA.GOV's message of 30 Aug 89 14:06:48 GMT I use things like the following: (setq vm-auto-folder-alist '( ("From" (".*[lL]eimkuhler.*" . "ben.mail" ) (".*[kK]unze.*" . "kunze.mail") (".*rms.*" . "rms.mail") (".*tiemann.*" . "tiemann.mail") (".*[tT]orek.*" . "torek.mail") (".*boulder.*" . "CU.mail") (".*[Cc]olorado.*" . "CU.mail") ) ("Subject" (".*[tT][eE][xX][xX]2.*" . "tex-utilities.mail") (".*[Ff][Ii][Nn][Aa][Ll].*" . "Final.mail") (".*[gG]\\+\\+" . "g++.mail")) )) I've found it useful to have my vm mail files in in ``.mail'' and then add: (setq auto-mode-alist (append (list < .... my other alist additions .... > (cons "\\.mail$" 'run-vm-mode)) auto-mode-alist)) (defun run-vm-mode () (vm (buffer-file-name))) this starts up VM whenever you edit a .mail file - it also works with the context-saving packages.