unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Local face remapping
@ 2023-10-04 12:58 JD Smith
  2023-10-04 16:54 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: JD Smith @ 2023-10-04 12:58 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

My indent-bars <https://github.com/jdtsmith/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?


[-- Attachment #2: Type: text/html, Size: 1060 bytes --]

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

end of thread, other threads:[~2023-10-06  5:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-04 12:58 Local face remapping JD Smith
2023-10-04 16:54 ` Eli Zaretskii
2023-10-04 18:48   ` JD Smith
2023-10-05  5:32     ` Eli Zaretskii
2023-10-05 13:12       ` JD Smith
2023-10-06  5:41         ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).