[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: face-remap-add-relative not executing
From: |
Michael Heerdegen |
Subject: |
Re: face-remap-add-relative not executing |
Date: |
Mon, 23 Nov 2020 13:19:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Christopher Dimech <dimech@gmx.com> writes:
> I have written this piece, however the colours are not taking effect.
>
> (add-hook 'org-mode-hook
> (lambda ()
> (face-remap-add-relative
> '(org-level-1 ((t (:foreground "00FFFF"))))
> '(org-level-2 ((t (:foreground "chartreuse"))))
> '(org-level-3 ((t (:foreground "dark orange"))))
> '(org-level-4 ((t (:foreground "yellow"))))
> '(org-level-5 ((t (:foreground "magenta"))))
> '(org-level-6 ((t (:foreground "tan1"))))
> '(org-level-7 ((t (:foreground "deep sky blue"))))
> '(org-level-8 ((t (:foreground "orange red")))) )))
Yes, you are using it wrong. The syntax is (see C-h f)
face spec ...
I.e. only one face per call.
Regards,
Michael.