[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding extensions to mode lists
From: |
Marius Ologesa |
Subject: |
Re: Adding extensions to mode lists |
Date: |
Thu, 1 Nov 2001 23:08:29 +0200 |
On Thu, 1 Nov 2001 09:29:07 -0800 (PST)
Lord Emsworth <lordemsworthx@yahoo.com> wrote the immortal words:
> Hi,
>
> How do I add an extension to a mode list?
>
> When I open ".php" and ".asp" files in emacs, I (currently) want
> them to open up in "HTML" mode rather than "Fundamental" (till I
> find and install PHP- and/or ASP-specific modes) mode. How do I
> do that?
I guess you need in .emacs
(setq auto-mode-alist
(cons '("\\.\\(asp\\|php\\)$" . html-mode)
auto-mode-alist)
)
>
> Any suggestions for some GOOD php and asp modes?
--
The Marius