Template Toolkit and Emacs

I am messing around with Template::Toolkit. Found the Emacs mode for template toolkit written by Dave Cross : https://github.com/davorg/tt-mode

Put the file tt-mode.el somewhere in your Emacs path and add these lines to your .emacs config file:

;; tt-mode
(load "tt-mode.el")
(setq auto-mode-alist (append '(("\\.tt$" . tt-mode)) auto-mode-alist ))
(setq auto-mode-alist (append '(("\\.tt2$" . tt-mode)) auto-mode-alist ))

works like a charm. Thank you Dave !

Leave a comment

About Erik Colson

user-pic Financial use of Perl, Emacs and Objective-C