URL: http://www.zope.it/Members/kaboom/tal/emacs

I've been using XEmacs on windows a lot lately to edit .zpt and .dtml files (template files for Zope) and to get automatic html-mode on these files you need this in your .emacs or 'custom.el':


(add-to-list 'auto-mode-alist '("\\.zpt$" . html-mode))
(add-to-list 'auto-mode-alist '("\\.dtml$" . html-mode))

This is not the first time I've had to add this. Better write it down so I've got it documented somewhere.

Comments

Your email will never ever be published.

Previous:
The importance of being findable April 15, 2004 This site
Next:
Funny Plone quote April 15, 2004 Zope
Related by category:
'Cache-Control' or Expires September 16, 2005 Zope
To all Zope developers: Does this sound familiar? March 8, 2011 Zope
IssueTrackerProduct now officially abandoned March 30, 2012 Zope
Sending HTML emails in Zope October 26, 2006 Zope
Related by keyword:
Zope compared to PHP June 22, 2005 Zope
Running simple SQL commands on the command line January 8, 2005 Python
Changing the size of a textarea box August 18, 2004 Web development
Lesson learned: Unicodifying request variables in Zope April 16, 2009 Zope