eruby mode emacs with mmm-mode

J

Jeffrey Moss

------=_NextPart_000_014F_01C58185.64AE5FB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Has anybody been able to configure eruby support for emacs with =
mmm-mode?

I can only get it to highlight the eruby code with a background color as =
specified, but syntax highlighting won't work. I see a lot of others =
have asked this problem by googling but I can't find any answers...

-Jeff
------=_NextPart_000_014F_01C58185.64AE5FB0--
 
A

Alan Chen

Jeffrey said:
Has anybody been able to configure eruby support for emacs with mmm-mode?

I can only get it to highlight the eruby code with a background color as specified, but syntax highlighting won't work. I see a lot of others have asked this problem by googling but I can't find any answers...

-Jeff

Jeff,

The following is in my add-mmm-eruby.el file, loaded in my .emacs file:

(require 'mmm-auto)

(setq mmm-global-mode 'maybe)

(mmm-add-classes
'((eruby
:submode ruby-mode
; :face mmm-declaration-submode-face
:front "<%[=]?"
:back "%>")))

;(mmm-add-mode-ext-class MODE EXTENSION CLASS)
(mmm-add-mode-ext-class 'sgml-mode "\\.rhtml$" 'eruby)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top