all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Deniz Dogan <deniz@dogan.se>
To: help-gnu-emacs@gnu.org
Subject: Re: getting .tpl files to be considered as php
Date: Wed, 25 May 2011 22:41:52 +0200	[thread overview]
Message-ID: <4DDD6990.6010104@dogan.se> (raw)
In-Reply-To: <BANLkTikSNAievTXjEAQ7UokH-GwBtwkuRQ@mail.gmail.com>

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	other threads:[~2011-05-25 20:41 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 [this message]
2011-05-26  6:36   ` Vineet Naik

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

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

  git send-email \
    --in-reply-to=4DDD6990.6010104@dogan.se \
    --to=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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.