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

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

Re: File mode specification error?


From: troelskn
Subject: Re: File mode specification error?
Date: Mon, 04 Jun 2007 12:27:41 -0700
User-agent: G2/1.0

> That's a regular expression my friend, the way emacs identifies file
> types (in this case).  Read the friendly manual on Emacs/POSIX regular
Ah ... that makes sense then. I had copy-pasted the following code to
bind filename to mode:
(setq auto-mode-alist
  (append
    (list
      '("\\.php" . php-mode)
        auto-mode-alist)))

Replacing with this, fixed the problem:
(add-to-list 'auto-mode-alist
             '("\\.php$" . php-mode))

Thanks for pointing me in the right direction.

--
troels



reply via email to

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