Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!boulder!hartzell From: hartzell@boulder.Colorado.EDU (George Hartzell) Newsgroups: comp.emacs Subject: Re: Appending the new stuff to the auto-mode-alist Message-ID: <3071@sigi.Colorado.EDU> Date: Sat, 21-Nov-87 11:48:43 EST Article-I.D.: sigi.3071 Posted: Sat Nov 21 11:48:43 1987 Date-Received: Mon, 23-Nov-87 03:47:32 EST References: <414@slb-sdr.UUCP> Sender: news@sigi.Colorado.EDU Reply-To: hartzell@boulder.Colorado.EDU (George Hartzell) Organization: University of Colorado, Boulder Lines: 27 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))) > > But in fact, this didn't work. Of course, it's possible to put Try: (setq auto-mode-alist (append '(("\\.F$" . fortran-mode) ("\\.for$" . fortran-mode) ("\\.txt$" . text-mode)) auto-mode-alist)) The way that you did it just returns the new list, it never gets assigned to auto-mode-alist. I suspect that you coule switch the auto-mode-alist and (append....) in my example to put the new stuff at the end of the list if you wanted. g. George Hartzell (303) 492-4535 MCD Biology, University of Colorado-Boulder, Boulder, CO 80309 hartzell@Boulder.Colorado.EDU ..!{hao,nbires}!boulder!hartzell