From: jfjfcli@gmail.com
To: help-gnu-emacs@gnu.org
Subject: case-insensitive regexp in derived-mode
Date: Sun, 27 Apr 2014 16:14:26 -0700 (PDT) [thread overview]
Message-ID: <4d9cd74d-624c-479d-a166-b995079f563e@googlegroups.com> (raw)
Following this tutorial
http://ergoemacs.org/emacs/elisp_syntax_coloring.html
Now my keywords are working, but the regexp to colour keyword is case insensitive.
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 "You can use case-fold in font-lock-defaults to specify the value of font-lock-keywords-case-fold-search which says whether search-based fontification should be case-insensitive."
any help would be great, thanks.
next reply other threads:[~2014-04-27 23:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-27 23:14 jfjfcli [this message]
2014-04-27 23:38 ` case-insensitive regexp in derived-mode Emanuel Berg
2014-04-28 3:04 ` jfjfcli
2014-04-27 23:46 ` Jacob Gerlach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4d9cd74d-624c-479d-a166-b995079f563e@googlegroups.com \
--to=jfjfcli@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.