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

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

Add multiple colours for use as overlay


From: Heime
Subject: Add multiple colours for use as overlay
Date: Sun, 31 Mar 2024 22:52:43 +0000

I have a face to use as a colour overlay when matching a pattern.

(defface thym-face '((t :foreground "#4fafff"))

(defun thym-put-overlay-properties ()
  (put 'thym 'face thym-face))

(defun thym-set-custom (symbol value)
  (set-default symbol value)
  (thym-put-overlay-properties))

How can I include multiple colour faces and have the ability to 
switch between them via a user command ? 




reply via email to

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