Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!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: <26143@tut.cis.ohio-state.edu> Date: 31 Oct 88 16:22:25 GMT References: <11520001@hpsmtc1.HP.COM> <25270@tut.cis.ohio-state.edu> Sender: news@tut.cis.ohio-state.edu Organization: The Ohio State University Dept of Computer & Information Science Lines: 19 In article iwm@asun2.ic.ac.uk (Ian Moor) 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. | |The thing that caught me is that you must load the file containing |the mode definition or put it on your autoload list thus | (autoload 'z-mode "z-mode" "Uncompress file" t) |otherwise you get a strange complaint about file syntax. Good point. Autoloads come earlier in my own .emacs, and the original inquiry was only about auto-mode-alist appending syntax, so I didn't bother including the autoload line that looks remarkably similar to the one you suggest. -=- Zippy sez, --Bob My life is a patio of fun!