thank you ihor.

first

> If you still want to do it file-locally, you need to eval
> (setopt org-set-tag-faces ...) file-locally via (eval . ...) entry in
> local variables.

i did that and it works flawlessly. thank you.

still, to my mind, it makes no sense to me that todo faces and tag faces would 
work so differently as they are described as working the same in documentation.

On Thu, 23 Oct 2025, at 19:13, Ihor Radchenko wrote:
> "Racoon Chimp" <[email protected]> writes:
>>> i have used org-rainbow-tags, and i like the idea, but i do not care 
>>> about the random assignment. also the tags are specific to this one 
>>> file, so how can i colorize the tags in the org file?
>>>
>>> thanks,
>>
>> in the following example, the todo keywords change, no problem, but the tags 
>> do not
>>
>> # Local Variables:
>> # org-default-properties: nil
>> # org-tag-faces: ("great" . (:background "orange" :foreground "blue"))
>> # org-todo-keyword-faces: (
>> #   ("HAVE.TO.SEE" . (:background "light gray" :foreground "red"))
>
> This point is subtle.
> file-local variables apply _after_ Org mode is loaded in the file.
> It happens that org-todo-keyword-faces value is checked dynamically,
> when applying faces. So, it does not matter when you set it.
> In contrast, org-tag-faces must be set before Org mode is loaded in the
> file or via `setopt'.
> If you still want to do it file-locally, you need to eval
> (setopt org-set-tag-faces ...) file-locally via (eval . ...) entry in
> local variables.
>
> -- 
> Ihor Radchenko // yantar92,
> Org mode maintainer,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>

Reply via email to