|
From: | Andreas Politz |
Subject: | Re: Red background color when editing a file as root (using TRAMP) |
Date: | Fri, 14 Nov 2008 14:59:47 +0100 |
User-agent: | Mozilla-Thunderbird 2.0.0.17 (X11/20081018) |
Kevin Rodgers wrote:
Nordlöw wrote:How do I buffer-locally set the background color?You can't: background color is a frame parameter, so it can be set local to each frame but not each buffer.
You can fake it with an overlay. But this works only on the non-empty parts of a buffer. (let ((ov (make-overlay (point-min) (point-max) (current-buffer) nil t))) (overlay-put ov 'face '(:background "red"))) -ap
[Prev in Thread] | Current Thread | [Next in Thread] |