[Top][All Lists]

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

Today's buffer-local faces patch

From: Miles Bader
Subject: Today's buffer-local faces patch
Date: 04 May 2004 11:10:46 +0900

This is a slight rework of my previous patch, incorporating some

Now the remapping is strictly only for display -- if lisp code wants to
know about it, it has to look at the variable (`face-remapping-alist').

[It would probably be good if such functions as describe-face and perhaps
customize-face would display a note when invoked on a remapped face.]

BTW one very nice use I've found is for reading mail in gnus:

   (defun use-variable-pitch-default-face ()
     (set (make-local-variable 'face-remappings)
          '((default variable-pitch))))

   (add-hook 'gnus-article-mode-hook 'use-variable-pitch-default-face)


Attachment: +face-remapping-20040504-0.patch
Description: +face-remapping-20040504-0.patch

Run away!  Run away!

reply via email to

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