velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brydon Cheyney <bry...@2fluid.co.uk>
Subject RE: vtl-mode question
Date Fri, 09 Aug 2002 15:09:58 GMT

 

> From: plynchnlm@netscape.net [mailto:plynchnlm@netscape.net]
> 
> Has anyone found a way to get vtl-mode to autmatically turn
> on whenever a .vm file is loaded?  (I'd like to just leave my
> xemacs in Fundamental mode, but have the minor vtl-mode enabled
> when I load a .vm file.)

i have this in my .xemacs/init.el file

;;===================================================================
;;                    vtl [velocity template language]
;;===================================================================

(autoload 'turn-on-vtl-mode "vtl" "VTL editing mode" t)
(add-hook 'html-mode-hook 'turn-on-vtl-mode t t)
(add-hook 'xml-mode-hook 'turn-on-vtl-mode t t)
(add-hook 'text-mode-hook 'turn-on-vtl-mode t t)

(add-to-list 'auto-mode-alist '("\\.vm\\'" . turn-on-vtl-mode))

hth,
brydon

--
brydon cheyney | analyst programmer | 2fluid creative ltd
      t: +44 [0]141 332 3444 | www.2fluid.co.uk

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message