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.

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:
To all Zope developers: Does this sound familiar? March 8, 2011 Zope
Announcing Smurl - a free URL compressor September 7, 2005 Zope
Mocking a Python standard library March 14, 2008 Zope
Sending HTML emails in Zope October 26, 2006 Zope
Related by keyword:
Lesson learned: Unicodifying request variables in Zope April 16, 2009 Zope
Zope compared to PHP June 22, 2005 Zope
Carbon XEmacs installed March 14, 2006 macOS
Running simple SQL commands on the command line January 8, 2005 Python