[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File mode specification error?
From: |
Joel J. Adamson |
Subject: |
Re: File mode specification error? |
Date: |
Mon, 04 Jun 2007 15:11:44 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
troelskn <troelskn@gmail.com> writes:
> (newbie-warning)
>
> I just installed emacs 22 on windows. If I open up a *.el file, there
> is no font-lock, and I get the following error message:
>
> File mode specification error: (wrong-type-argument stringp ("\\.dz\
> \'" nil jka-compr))
>
> Anyone have an idea about, what that is?
That's a regular expression my friend, the way emacs identifies file
types (in this case). Read the friendly manual on Emacs/POSIX regular
expression syntax under "M-x info" (this takes you into info mode,
then you can read the Emacs manual, a chapter of which is dedicated to
regular expressions).
As annoying as the message is, you can enable font-lock by typing "M-x
font-lock-mode RET" or putting
;; Global font-lock mode
(global-font-lock-mode 1)
into your .emacs file. This enables font lock by default for every
buffer. I love it. Every buffer comes up all colorful...
By your newbie warning, do you mean you're new to Emacs, or new to
Emacs 22?
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109