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
Plone.org calls it Issue Tracker May 14, 2005 Zope
Mocking a Python standard library March 14, 2008 Zope
Related by keyword:
Running simple SQL commands on the command line January 8, 2005 Python
Zope compared to PHP June 22, 2005 Zope
Lesson learned: Unicodifying request variables in Zope April 16, 2009 Zope
Carbon XEmacs installed March 14, 2006 macOS