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

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

Re: php-html-helper-mode


From: Lennart Borgman (gmail)
Subject: Re: php-html-helper-mode
Date: Wed, 14 Feb 2007 20:28:04 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666

Hadron wrote:
Can someone please help?

I have this in my .emacs:

(add-to-list 'auto-mode-alist '("\\.ph$" . php-html-helper-mode))

The problem is that my auto-load-alist looks like this:

(("\\.php$" . php-html-helper-mode)
 ("\\.ht,$" . html-helper-mode)
 ("\\.muse\\'" . muse-mode-choose-mode)
 ("\\.wy$" . wisent-grammar-mode)
 ("\\.by$" . bovine-grammar-mode)
 ("Project\\.ede" . emacs-lisp-mode)
 ("\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode)
 ("\\.u?deb$" . deb-view-mode)
 ("sources.list$" . apt-sources-mode)
 ("\\.php$" . c-mode)
 ("\\.php3\\'" . php-mode)
 ("\\.php[34]?\\'\\|\\.phtml\\." . php-mode)
 ("\\.php$" . php-html-helper-mode)
 ("\\.asp$" . html-helper-mode)
 ("\\.jsp$" . jsp-html-helper-mode)
*snip*

I guess this is debian autoloads setting this up for me, but how to I
specify php files to open in php-html-helper mode, as they are currently
opening in c-mode.


Maybe this can help you, look at Changing Default Major Mode:

  http://www.emacswiki.org/cgi-bin/wiki/NxmlMode




reply via email to

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