Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!jbs From: jbs@eddie.MIT.EDU (Jeff Siegal) Newsgroups: comp.emacs Subject: Re: Appending the new stuff to the auto-mode-alist Message-ID: <7463@eddie.MIT.EDU> Date: Sat, 21-Nov-87 11:29:59 EST Article-I.D.: eddie.7463 Posted: Sat Nov 21 11:29:59 1987 Date-Received: Mon, 23-Nov-87 03:43:10 EST References: <414@slb-sdr.UUCP> Reply-To: jbs@eddie.MIT.EDU (Jeff Siegal) Organization: MIT, EE/CS Computer Facilities, Cambridge, MA Lines: 22 Keywords: append, init file In article <414@slb-sdr.UUCP> saito@slb-sdr.UUCP (Naoki Saito) writes: > > Hello! I tried to append the new stuff to the auto-mode-alist >by putting the following line to my .emacs file. > >(append 'auto-mode-alist '(("\\.F$" . fortran-mode) > ("\\.for$" . fortran-mode) > ("\\.txt$" . text-mode))) > Your expression appends the new associations to the standard list, but does not do anything with the newly created list. You need to change the value of auto-mode-alist. Also, you probably want to put your new associations before the standard ones, so you can override an existing file type. (setq auto-mode-alist (append '(("\\.F$" . fortran-mode) ("\\.for$" . fortran-mode) ("\\.txt$" . text-mode)) auto-mode-alist)) Jeff Siegal