unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* getting .tpl files to be considered as php
@ 2011-05-25  9:09 Vineet Naik
  2011-05-25 20:41 ` Deniz Dogan
  0 siblings, 1 reply; 3+ messages in thread
From: Vineet Naik @ 2011-05-25  9:09 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 370 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: getting .tpl files to be considered as php
  2011-05-25  9:09 getting .tpl files to be considered as php Vineet Naik
@ 2011-05-25 20:41 ` Deniz Dogan
  2011-05-26  6:36   ` Vineet Naik
  0 siblings, 1 reply; 3+ messages in thread
From: Deniz Dogan @ 2011-05-25 20:41 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: getting .tpl files to be considered as php
  2011-05-25 20:41 ` Deniz Dogan
@ 2011-05-26  6:36   ` Vineet Naik
  0 siblings, 0 replies; 3+ messages in thread
From: Vineet Naik @ 2011-05-26  6:36 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

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
>
>

[-- Attachment #2: Type: text/html, Size: 1161 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-26  6:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-25  9:09 getting .tpl files to be considered as php Vineet Naik
2011-05-25 20:41 ` Deniz Dogan
2011-05-26  6:36   ` Vineet Naik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).