unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Vineet Naik <naikvin@gmail.com>
To: Deniz Dogan <deniz@dogan.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: getting .tpl files to be considered as php
Date: Thu, 26 May 2011 12:06:40 +0530	[thread overview]
Message-ID: <BANLkTikBJ3G4=GVC5k+5GTLKvBsQ6eG6Pw@mail.gmail.com> (raw)
In-Reply-To: <4DDD6990.6010104@dogan.se>

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

      reply	other threads:[~2011-05-26  6:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTikBJ3G4=GVC5k+5GTLKvBsQ6eG6Pw@mail.gmail.com' \
    --to=naikvin@gmail.com \
    --cc=deniz@dogan.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).