emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Specifying mode in file variables trouble


From: Lennart Borgman (gmail)
Subject: Re: Specifying mode in file variables trouble
Date: Mon, 22 Sep 2008 16:26:45 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Stefan Monnier wrote:
>> For web template files (like PHP, JSP, Genshi etc) there are however
>> often several major mode chunks involved. In for example a php file
>> there may be chunks with these major modes
> 
>>   - nxhtml-mode / html-mode
>>   - php-mode
>>   - css-mode
>>   - javascript-mode
> 
>> I currently use the name nxhtml-mumamo-mode (or html-mumamo-mode) for
>> the multi major mode, which is of course not that very descriptive. The
>> name begins with "nxhtml-" because that is the main major mode (there
>> are only two levels allowed sofar, main major mode and sub chunks major
>> modes).
> 
> Why not web-template-mode?


There are many kind of web templates, for example

  smarty
  genshi
  embperl
  eruby
  mako
  php
  django
  mjt
  jsp
  noweb
  ...

For each of them I have one with html-mode as main mode and one with
nxhtml-mode as main mode.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]