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