Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!pacbell.com!iggy.GW.Vitalink.COM!widener!brendan From: brendan@cs.widener.edu (Brendan Kehoe) Newsgroups: comp.editors Subject: Re: c-mode without a .c suffix Keywords: emacs c-mode C Message-ID: Date: 19 Apr 91 02:30:12 GMT References: <822@llnl.LLNL.GOV> Organization: Widener CS Dept Lines: 21 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.) Have fun.. Brendan -- Brendan Kehoe - Widener Sun Network Manager - brendan@cs.widener.edu Widener University in Chester, PA A Bloody Sun-Dec War Zone "Does this person look relaxed do you? Well, it's actually an 0 experiment of Contour's new 565-E chair!"