perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angus Lees <...@inodes.org>
Subject Re: emacs and embperl
Date Thu, 25 Mar 2004 03:36:05 GMT
At Tue, 23 Mar 2004 21:56:31 -1000, Beau E. Cox wrote:
> I am up and running with Embperl, but want to set my emacs
> (gnu-emacs 21.3) for proper editing.
> 
> I downloaded and installed the 'mmm' package (0.4.7) as per
> the directions on the Embperl site.

The instructions there are for a much older version of mmm.  The
embperl "class" is now included by default and configuration has
changed completely.

You're better off reading the (quite extensive) mmm-mode info
documentation.


> Does anyone have the 'mmm' perl/embperl systax system
> in gnu emacs? If so, could you shre your setup with me?

I use ".epl" and ".html" for my Embperl files, and I prefer using
html-helper-mode rather than html-mode (a psgml derivative) but the
following should work with both.  The following is copied from my
~/.xemacs/init.el and tweaking should be obvious from the relevant
variable's documentation:

 (require 'mmm-mode)

 ;; make Embperl files load in html-helper-mode
 (add-to-list 'auto-mode-alist '("\\.epl\\'" . html-helper-mode))

 ;; enable mmm subclass if major mode and filename match
 (mmm-add-mode-ext-class 'html-mode "\\.(epl\\|html)\\'" 'embperl)
 (mmm-add-mode-ext-class 'html-helper-mode "\\.(epl\\|html)\\'" 'embperl)

 (setq mmm-global-mode 'maybe)

-- 
 - Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message