On Wed, Feb 06, 2002 at 08:58:45AM +0100, gerhard.egger wrote:
> Dear Gus,
>
> this really helped me!
>
> i added to my .xemacs-custom file:
Are there perhaps 2 different mmm-modes? I've never been able to
download the one mentioned in the Embperl docs (bad link). I'm using
the mmm-mode from mmm-mode.sourceforge.net, which comes with some code
for an embperl mode. I'm rather happy with it, but what I had to do
to get it running is a wee bit different from what you had to do... I
ended up adding the following to my .emacs to get version 0.4.7 to
work (this is a slightly hacked version of something they included in
"mmm-sample.el"):
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp")
(require 'mmm-auto)
(setq mmm-global-mode 'maybe)
(set-face-background 'mmm-default-submode-face nil)
(mmm-add-group
'embperl
'((embperl-perl
:submode perl-mode
:front "\\[\\([-\\+!\\*\\$]\\)"
:back "~1\\]"
:save-matches 1
:insert ((?p embperl "Region Type (Character): " @ "[" str
@ " " _ " " @ str "]" @)
(?+ embperl+ ?p . "+")
(?- embperl- ?p . "-")
(?! embperl! ?p . "!")
(?* embperl* ?p . "*")
(?$ embperl$ ?p . "$")
)
)
(embperl-comment
:submode text-mode
:front "\\[#"
:back "#\\]"
:insert ((?# embperl-comment nil @ "[#" @ " " _ " " @ "#]" @))
)
(embperl-html
:submode html-mode
:front "\\([-\\+!\\*\\$]\\)\\]"
:back "\\[\\([-\\+!\\*\\$]\\)"
:insert ((?# embperl-comment nil @ "[#" @ " " _ " " @ "#]" @))
)))
(add-to-list 'mmm-mode-ext-classes-alist '(nil "\\.epb\\'" embperl))
(add-to-list 'mmm-mode-ext-classes-alist '(nil "\\.epf\\'" embperl))
(add-to-list 'mmm-mode-ext-classes-alist '(nil "\\.epl\\'" embperl))
(add-to-list 'auto-mode-alist '("\\.epl\\'" . mmm-mode))
(add-to-list 'auto-mode-alist '("\\.epb\\'" . mmm-mode))
(add-to-list 'auto-mode-alist '("\\.epf\\'" . mmm-mode))
> ; mmm-mode (for embperl, etc)
> (require 'mmm-mode)
> ; .html is already associated with html-mode
> (add-to-list 'auto-mode-alist '("\\.epl\\'" . html-mode))
>
> ; to have syntaxhighlightning etc. for perl:
> (add-to-list 'auto-mode-alist '("\\.epl\\'" . perl-mode))
>
> (mmm-add-mode-ext-class 'html-mode "\\.epl\\'" 'embperl)
> (mmm-add-mode-ext-class 'html-mode "\\.html\\'" 'embperl)
> (setq mmm-global-mode 'maybe)
>
> thanks a lot!!!
>
> Gerhard
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]