🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #1839

adding something to the var auto-mode-alist

#1839
From: Pragnesh Sampat
Date: Fri, 20 Nov 1992 19:57
7 lines
812 bytes
I would like to add an element like ("\\.x$" . c-mode) to the variable
auto-mode-alist to enter c-mode for editing files ending in .x. How can I
do this in .emacs? 

Any help is appreciated. Thanks

Pragnesh Sampat		psampat@astro.ocis.temple.edu	(215)787-6388
Technical Details
Message-ID: <1992Nov20.195718.11134@cronkite.ocis.temple.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!hela.iti.org!cs.widener.edu!dsinc!netnews.upenn.edu!cronkite.ocis.temple.edu!astro.ocis.temple.edu!psampat

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!hela.iti.org!cs.widener.edu!dsinc!netnews.upenn.edu!cronkite.ocis.temple.edu!astro.ocis.temple.edu!psampat
From: psampat@astro.ocis.temple.edu (Pragnesh Sampat)
Newsgroups: gnu.emacs.help
Subject: adding something to the var auto-mode-alist
Message-ID: <1992Nov20.195718.11134@cronkite.ocis.temple.edu>
Date: 20 Nov 92 19:57:18 GMT
Sender: news@cronkite.ocis.temple.edu (NetWork News (readnews))
Organization: Temple University
Lines: 7
X-Newsreader: Tin 1.1 PL5