all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* case-insensitive regexp in derived-mode
@ 2014-04-27 23:14 jfjfcli
  2014-04-27 23:38 ` Emanuel Berg
  2014-04-27 23:46 ` Jacob Gerlach
  0 siblings, 2 replies; 4+ messages in thread
From: jfjfcli @ 2014-04-27 23:14 UTC (permalink / raw)
  To: help-gnu-emacs

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. 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-28  3:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-27 23:14 case-insensitive regexp in derived-mode jfjfcli
2014-04-27 23:38 ` Emanuel Berg
2014-04-28  3:04   ` jfjfcli
2014-04-27 23:46 ` Jacob Gerlach

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.