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

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

Re: getting .tpl files to be considered as php


From: Vineet Naik
Subject: Re: getting .tpl files to be considered as php
Date: Thu, 26 May 2011 12:06:40 +0530

Thanks a lot. That worked like a charmĀ 

On Thu, May 26, 2011 at 2:11 AM, Deniz Dogan <deniz@dogan.se> wrote:
On 2011-05-25 11:09, Vineet Naik wrote:
Hi,

I have configured nXhtml with emacs23 for php development. Everything
works fine for php, html files.
But I want that it should also treat .tpl files as php files (ie code
highlight and everything else should work in tpl as well).
How do I set this ?

Thanks,
vineet



Put this in your init file:

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

Replace php-mode above with whatever mode you want to enable when opening a .tpl file.

/Deniz



reply via email to

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