help-emacs-windows
[Top][All Lists]
Advanced

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

[h-e-w] php/html-helper with mmm mode


From: Chris Lott
Subject: [h-e-w] php/html-helper with mmm mode
Date: Fri, 28 Jun 2002 14:40:12 -0800 (AKDT)

I got the following from the help list for mmm mode which does almost
exactly the opposite of what I want... I would like to have
html-helper-mode be the main mode with php-mode as the submode...

(require 'php-mode)
(require 'mmm-auto)
(mmm-add-classes
'((html-in-php
:submode html-mode
:front "\\?>"
:back "<\\?")))
(add-hook 'php-mode-hook '(lambda ()
(setq mmm-classes '(html-in-php))
(set-face-background 'mmm-default-submode-face "LightBlue1")
(mmm-mode-on)))
(provide 'mmm-php)

I tried revising like the following, but ended up with PHP as major
and submode too?

c
--
Chris Lott




reply via email to

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