From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Newsgroups: gmane.emacs.help Subject: Re: file association in emacs Date: Fri, 25 May 2007 15:45:44 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1180100445 6111 80.91.229.12 (25 May 2007 13:40:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 May 2007 13:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 25 15:40:43 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hra27-0001ng-19 for geh-help-gnu-emacs@m.gmane.org; Fri, 25 May 2007 15:40:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hra26-0004Jw-Lm for geh-help-gnu-emacs@m.gmane.org; Fri, 25 May 2007 09:40:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (windows-nt) Cancel-Lock: sha1:1lHoHywIc6yVgXRNLBvh7Ns9Qqc= Original-Lines: 16 Original-NNTP-Posting-Host: 88.80.135.102 Original-X-Trace: news.sunsite.dk DXC=AVW4k0c4U; 9jd^7_dR6Ih5YSB=nbEKnk; V`^KZl[Dm9<4La5I_Zi\^>]Z1k]4VTiQ3IJ`JaB=N:a7loO[k44ViD8MoPiHji4^n6 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:148841 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44433 Archived-At: On петък, Май 25 2007, ypitrey wrote: > hi, > > how can i have the m4-mode activated automatically when i open a .m4 or .m4x > file? > > more generally, how can i associate a syntaxic mode with a file type? > > thanks a lot! Try this way: (setq auto-mode-alist (append '(("\\.m4$" . m4-mode) ("\\.m4cx$" . m4-mode)) auto-mode-alist))