help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make emacs fontify a php buffer


From: Colin S. Miller
Subject: Re: How to make emacs fontify a php buffer
Date: Wed, 17 Jun 2009 22:27:53 +0100
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]