[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Buffer-local faces patch
From: |
Kim F. Storm |
Subject: |
Re: Buffer-local faces patch |
Date: |
03 May 2004 13:58:38 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Miles Bader <address@hidden> writes:
> I tried hacking up my idea for implementing buffer-local faces, here's
> a patch.
>
> The user interface is the variable `face-remappings':
>
> Alist of face mappings.
> Each element is of the form:
> (FACE . NEW-FACE)
> or
> (FACE NEW-FACE MERGE-FACE...),
> which causes NEW-FACE to be used where FACE normally would.
> If present, MERGE-FACE... are merged during display with NEW-FACE.
>
> E.g., try evaluating the following in some buffer:
>
> (set (make-local-variable 'face-remappings) '((default . bold)))
>
> It works (or seems to!) with other special faces like mode-line, etc., too.
>
> Here's the patch; lemme know what you think:
>
Looks like a very useful feature -- and quite non-intrusive as well.
I think we can install it, and see how it works out.
I'm not sure about the name of the variable. It seems that there is
a preference to have -alist as part of alist varibles...
So what about face-map-alist or face-remap-alist ?
--
Kim F. Storm <address@hidden> http://www.cua.dk