unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Colour Capital Letters
@ 2023-10-02  1:58 Heime
  2023-10-02 10:28 ` Philip Kaludercic
  2023-10-18 18:58 ` Marcin Borkowski
  0 siblings, 2 replies; 7+ messages in thread
From: Heime @ 2023-10-02  1:58 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

I want to make a stand alone function that uses a different colour for capital letters 
in CamelCase names. Possibly taking code from glasses.el.

(defun color-camelcase-capital-letters ()
  "Color capital letters in CamelCase variables."
  (interactive)
  (highlight-regexp "\\(?:^\\|\\b\\)[[:upper:]][[:lower:]]*" 'hi-yellow))

What can I do ?



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

end of thread, other threads:[~2024-03-31  1:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-02  1:58 Colour Capital Letters Heime
2023-10-02 10:28 ` Philip Kaludercic
2023-10-18 18:58 ` Marcin Borkowski
2023-10-18 19:40   ` Heime
2023-10-25 18:30     ` Marcin Borkowski
2023-11-14 19:59       ` Marcin Borkowski
2024-03-31  1:21         ` Heime

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).