Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!allosaur.cis.ohio-state.edu!bob From: bob@allosaur.cis.ohio-state.edu (Bob Sutterfield) Newsgroups: comp.emacs Subject: Re: Adding to auto-mode-alist Message-ID: <25270@tut.cis.ohio-state.edu> Date: 20 Oct 88 20:39:41 GMT References: <11520001@hpsmtc1.HP.COM> Sender: news@tut.cis.ohio-state.edu Organization: The Ohio State University Dept of Computer & Information Science Lines: 26 In article <11520001@hpsmtc1.HP.COM> kge@hpsmtc1.HP.COM (Kevin Ewert) writes: >I would like to add another file type to the auto-mode-alist variable >that invokes the text-mode, but I can't seem to get the syntax right. There may be an easier, more elegant way, but this works for me, in my .emacs file. Nothing here does text-mode, but you'll get the idea. (setq auto-mode-alist (append '( ("\\.1$" . nroff-mode) ("\\.2$" . nroff-mode) ("\\.3$" . nroff-mode) ("\\.4$" . nroff-mode) ("\\.5$" . nroff-mode) ("\\.6$" . nroff-mode) ("\\.7$" . nroff-mode) ("\\.8$" . nroff-mode) ("\\.man$" . nroff-mode) ("\\.me$" . nroff-mode) ("\\.mm$" . nroff-mode) ("\\.mr$" . nroff-mode) ("\\.ms$" . nroff-mode) ("\\.Z$" . z-mode) ) auto-mode-alist)) -=- Zippy sez, --Bob I need to discuss BUY-BACK PROVISIONS with at least six studio SLEAZEBALLS!!