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

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

Re: [OT] Emacs under attack


From: John Thingstad
Subject: Re: [OT] Emacs under attack
Date: Mon, 20 Sep 2004 19:50:56 +0200
User-agent: Opera M2/7.54 (Win32, build 3865)

On Mon, 20 Sep 2004 00:14:41 -0000, Chris Lott <chris.lott[AT]gmail.com> wrote:

Look this: http://www.php-editors.com/review/

They don't list emacs there but put it in dark and smelly "All
unreviewed PHP Editors"!!

It would help if there were a PHP mode that actually worked well. This
isn't a flame, it just seems like the modes I have found all have pretty
significant problems.

Ideally, mmm with PHP and some HTML mode would be great, but even
consistency just in the PHP blocks would be a start!

c

I use MMM mode with PHP and HTML for my PHP editing..
Guess I can past in the code I added to my .emacs (actually site-start.el)

;;
;; PHP mode

(require 'mmm-mode)
(setq mmm-global-mode 'maybe)
(mmm-add-mode-ext-class nil "\\.php?\\'" 'html-php)
(mmm-add-classes
 '((html-php
    :submode php-mode
    :front "<\\?\\(php\\)?"
    :back "\\?>"
    )))
(autoload 'php-mode "php-mode" "PHP editing mode" t)
(setq auto-mode-alist
      (cons '("\\.php$" . html-mode) auto-mode-alist))

;;---

See how this works for you :)


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

reply via email to

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