howto start a file in tt-mumamo-mode ?

Asked by uli

I've running Debian (Lenny), emacs22, nxhtml-1.77-090511-02_03_51

I want to edit some Template::Toolkit-Files, but I'm not able to load tt-mumamo-mode automatically when loading a '*.tt'-file.

Can you help me ?

Uli

Question information

Language:
English Edit question
Status:
Solved
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
uli (ulrich-herbst) said :
#1

For now, I'm doing:

require 'mumamo-fun)
(add-to-list 'auto-mode-alist '("\\.tt" . tt-html-mumamo))

Is there a better way to do that ?

Uli

Revision history for this message
lborgman (lennart-borgman) said :
#2

Hi uli,

You could for example tell me what file extensions tt files normally use. Then I could add it to nXhtml ;-)

Revision history for this message
Khaoz (giulianisanches) said :
#3

I'm using the same configuration as uli, but my tt templates get really ugly. Html background uses a blue color and tt parts a green background. Al my color-theme style is gone when using tt-html-mumamo. Is that normal ?

As for the extensions, the most usual are .tt and .tt2.

Revision history for this message
lborgman (lennart-borgman) said :
#4

Hi Khaoz,

I do not think there are any color-themes that currently supports MuMaMo/nXhtml. Unfortunately I can't do very much about that, it must be handled by those writing the color-theme.

Note: There are suggestions for including color-theme like support in Emacs. The current color-theme is not really compatible with Emacs.

Revision history for this message
lborgman (lennart-borgman) said :
#5

I think it is solved in the nXhtml side.