Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!dynsim1!litwin!vlr From: vlr@litwin.com (Vic Rice) Newsgroups: comp.editors Subject: Re: c-mode without a .c suffix Keywords: emacs c-mode C Message-ID: <1991Apr21.020541.21410@litwin.com> Date: 21 Apr 91 02:05:41 GMT References: <822@llnl.LLNL.GOV> Organization: Litwin Process Automation Lines: 17 In brendan@cs.widener.edu (Brendan Kehoe) writes: >In <822@llnl.LLNL.GOV>, rjshaw@ramius.llnl.gov writes: >>How do I make gnuemacs start up in c-mode for files ending in .pcp as well >>as .c and .h ? > In your .emacs file make it say: > (setq auto-mode-alist '( > ("\\.c$" . c-mode) ("\\.pl$" . perl-mode) > ("\\.pcp$" . c-mode) ("\\.h$" . c-mode))) > (Threw in Perl to show an example of other modes.) You can stick the following any where in the first non-blank line of the file: -*-C-*- or -*-Fortran-*- or whatever ...