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

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

Re: case-insensitive regexp in derived-mode


From: Emanuel Berg
Subject: Re: case-insensitive regexp in derived-mode
Date: Mon, 28 Apr 2014 01:38:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

address@hidden writes:

> I was able to get it to work by evaluating (setq
> font-lock-keywords-case-fold-search t) after loading
> the custom mode into that buffer.
>
> However no matter where I put it in the .el file of
> the custom mode, I cannot to work automatically.

The documentation also says: "Automatically becomes
buffer-local when set." So perhaps your setting got
overruled along the way.

Try:

(set-default 'font-lock-keywords-case-fold-search t)

I don't know if you want that, but if it works, you
know where the first attempt failed.

-- 
underground experts united:
http://user.it.uu.se/~embe8573


reply via email to

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