Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!bloom-beacon!mgm.mit.edu!wolfgang From: wolfgang@mgm.mit.edu (Wolfgang Rupprecht) Newsgroups: comp.emacs Subject: re: Need help w/ Gnu auto-mode-alist Message-ID: <2881@bloom-beacon.MIT.EDU> Date: 10 Feb 88 03:21:42 GMT References: <760003@hpwale.HP.COM> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: wolfgang@mgm.mit.edu (Wolfgang Rupprecht) Organization: Freelance Software Consultant, Boston, Ma. Lines: 15 You can add new modes by adding this to your .emacs file: (setq auto-mode-alist (cons '("\\.foo$" . foo-mode) auto-mode-alist)) This will put all files ending in the '.foo' extension into foo-mode. Alternately, you may put the above line into the file ~emacs/lisp/site-load.el (and re-make emacs) if you want to make it a system-wide default. -wolfgang --- Wolfgang Rupprecht ARPA: wolfgang@mgm.mit.edu (IP 18.82.0.114) 326 Commonwealth Ave. UUCP: mit-eddie!mgm.mit.edu!wolfgang Boston, Ma. 02115 TEL: (617) 267-4365