Lisp-Mode

emacs not recognizing .tpl file as smarty file

Posted by ccoletta 
emacs not recognizing .tpl file as smarty file
November 03, 2008 05:52PM
Hello,

I am using emacs 22.2.1 on Win32. I am using nXhtml (http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html) and I see that smarty mode is a part of that package. When I open a .tpl smarty template file emacs doesn't recognize that it is a smarty template file, and the editing mode is instead the "Fundamental" mode.

How do I make emacs recognize that a .tpl file is a smarty file?

I installed emacs via the Cygwin setup program, and so therefore the nXhtml mode that normally comes with the Win32 install of emacs didn't seem to be installed by Cygwin, so I downloaded it independently and installed it in my emacs lisp load path. Editing XHTML with javascript works fine, beautifully.
Re: emacs not recognizing .tpl file as smarty file
November 01, 2010 09:07AM
Hi,

Take a look at the last paragraph of this page: [www.morinie.fr]
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 1
Record Number of Users: 2 on February 06, 2012
Record Number of Guests: 61 on February 22, 2014
Hébergeur : Morinie.Fr