[Catalyst] Re: Patch for Catalyst::View::Mason

Jonathan Rockway jon at jrock.us
Sun Mar 9 00:11:16 GMT 2008


* On Sat, Mar 08 2008, Sebastian Willert wrote:
> (setq auto-mode-alist (cons '("\\/templates/mason/" 'xml-html-mode)
> auto-mode-alist))

This should be (cons (cons regex mode) auto-mode-alist) instead of 
(cons (list regex mode) auto-mode-alist).  This is so (cdr that-thing) 
returns a value instead of a list.

In the interests of TMTOWTDI, you can also say:

  (add-to-list 'auto-mode-alist '(regexp . mode))

I'm pretty sure Aristotle uses vi, though ;)

Regards,
Jonathan Rockway



More information about the Catalyst mailing list