Path: utzoo!attcan!uunet!mcvax!enea!kth!draken!tut!utacs!av From: av@utacs.UTA.FI (Arto Viitanen) Newsgroups: comp.emacs Subject: Re: Adding to auto-mode-alist Message-ID: <570@utacs.UTA.FI> Date: 20 Oct 88 14:41:25 GMT References: <11520001@hpsmtc1.HP.COM> Reply-To: av@utacs.UUCP (Arto Viitanen) Organization: University of Tampere, Dept. of Computer Science, Finland Lines: 29 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. > >Any help in this area would be greatly appreciated. Thanks. I use following command in my .emacs file, (setq auto-mode-alist (append auto-mode-alist '(("\\.pc$*" . c-mode) ("\\.pro$" . mprolog-mode)))) i.e. files with extension .pc invoke c-mode and files with .pro extension invoke mprolog-mode (prolog-mode with minor changes). Hope this helps. Arto Viitanen University Of Tampere, Department of Computer Science P.O.Box 607 SF-33101 TAMPERE FINLAND av@utacs.uta.fi, av@comic.uta.fi ----------------