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: Harry Putnam
Subject: Re: How to make emacs fontify a php buffer
Date: Wed, 17 Jun 2009 16:09:48 -0500
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.94 (gnu/linux)

"Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk> writes:

> Harry Putnam wrote:
>> I want emacs to fontify a certain file... I think it is *.php but not
>> really sure.
>>
>> Just adding .php to it does not seem to cause emacs to fontify that file.  Of
>> coure I have syntax hilighting turned on.
>>
>> I've posted the file here:
>>
>>    www.jtan.com/~reader/script.txt
>>
>> Anyone recognize what kind of code it is?
>> Can anyone tell how to make emacs fontify that file?
>>
>>
>>
> Harry,
> assuming that
> M-x php-mode
> works on the file, then

No it didn't work on the file... apparently php-mode library is not
loading on startup.. so added this (including your suggestion)

> add to your .emacs
>
> (add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode) 't)
>
> will make all files ending in .php open in php-mode.

(require 'php-mode)
(add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode) 't)

And that seems to get it done..

   Thanks for the tips posters.





reply via email to

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