[Top][All Lists]

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

Re: Local face remapping

From: Eli Zaretskii
Subject: Re: Local face remapping
Date: Wed, 04 Oct 2023 19:54:25 +0300

> From: JD Smith <jdtsmith@gmail.com>
> Date: Wed, 4 Oct 2023 08:58:34 -0400
> My indent-bars package makes good use of `face-remap-add-relative’ to provide 
> performant
> depth-based context highlighting via a post-command-hook.  This is very fast 
> and simple: just check
> the indentation depth, and if it changed, update the buffer-local face 
> remapping list accordingly.  I am
> now considering a feature which would make this highlighting local in regions 
> based on treesitter
> block scope.
> Is there any means of achieving local face remapping within regions?  Ideally 
> overlays could be
> used, if they had a `remapping-alist' property, similar to the global or 
> buffer-local value, but applying
> only within the bounds of the overlay.  Given that this does not exist, is 
> there another way to achieve
> something similar?

Use different faces?

reply via email to

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