From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: How to make emacs fontify a php buffer Date: Wed, 17 Jun 2009 22:27:53 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4a395fd5$0$90271$14726298@news.sunsite.dk> References: <4a39332f$0$90267$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245274911 30346 80.91.229.12 (17 Jun 2009 21:41:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2009 21:41:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 17 23:41:48 2009 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 1MH2t3-0004o5-EV for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 23:41:41 +0200 Original-Received: from localhost ([127.0.0.1]:36800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH2t2-0003tz-NO for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 17:41:40 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 30 Original-NNTP-Posting-Host: 62.56.63.51 Original-X-Trace: news.sunsite.dk DXC=49kj; \^81; HB^D; 0lZCOUDYSB=nbEKnkKebg1>^?UCAJG1[Bg<0aH5@\VT\m5_SIbFU_42Df:PaKHTcL2h5ahoTOkF_>m>CYcVO7_doBj0I\NM2KflMPHHn^DFQniZF161`A Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:170129 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:65356 Archived-At: Harry, Harry Putnam wrote: > > No it didn't work on the file... apparently php-mode library is not > loading on startup.. so added this (including your suggestion) > > > (require 'php-mode) > (add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode) 't) > Harry, If you don't use php-mode often, then it might be better to replace the (requires...) with (autoload 'php-mode '"php-mode") This will make emacs (require php-mode) when the function (php-mode) is used by the auto-mode-alist (or any other use of it). This will save (some) memory and start-up time, but will lead to a slight delay the first time each session you use php-mode. HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.